Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 25 Nov 2012 12:49:18 +0100
From:      Tobias Rehbein <tobias.rehbein@web.de>
To:        freebsd-ports@freebsd.org
Cc:        Nikolai Lifanov <lifanov@mail.lifanov.com>
Subject:   How to handle WITH_CLANG_IS_CC in ports
Message-ID:  <20121125114918.GA35966@oshi.local>

next in thread | raw e-mail | index | archive | help
Hi all,

I am the maintainer of ganes/stonesoup. This port builds fine with gcc.
It also builds with clang, if the MAKE_ARGS are tweaked.

Currently I can check for

	${CC:T:M*clang*}

to know if I have to change the MAKE_ARGS for building with clang or
not.

In CURRENT cc is clang and the environment variable CC is no longer set.
This lets the build of games/stonesoup fail. My question is how to
correctly check if cc is clang or not. My first guess was something
along the lines of

	${CC:T:M*clang*} || (defined(WITH_CLANG_IS_CC) && ${CC:T:Mcc})

but I guess there is some kind of official way to handle this (ideally
warpped in some Mk macro.

Regards

	Tobias




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20121125114918.GA35966>