Date: Sun, 26 Dec 2010 06:10:10 GMT From: Anonymous <swell.k@gmail.com> To: freebsd-java@FreeBSD.org Subject: Re: ports/151042: [patch] java/openjdk6 Respect CC Message-ID: <201012260610.oBQ6AAdx093681@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/151042; it has been noted by GNATS. From: Anonymous <swell.k@gmail.com> To: Rob Farmer <rfarmer@predatorlabs.net> Cc: bug-followup@freebsd.org Subject: Re: ports/151042: [patch] java/openjdk6 Respect CC Date: Sun, 26 Dec 2010 09:08:00 +0300 Rob Farmer <rfarmer@predatorlabs.net> writes: > On Sat, Dec 25, 2010 at 01:55, Anonymous <swell.k@gmail.com> wrote: >> - sys.mk already provides default values for CC/CPP/CXX (cc/cpp/c++) >> - but the port may not support using cpp(1) directly, so don't inherit CPP > > cc -E is necessary here (with the base system) but I still think ?= is > best, to allow override if desired. I've built this in the past with > the recommended lang/gcc4x settings: And it's overrided, always. sys.mk defines CPP and bsd.port.mk exports[1] it to descendant make(1) or gmake(1). [1] since ports/151047 was committed a few months ago there were a few fallouts that required `CPP = ${CC} -E' or `CPP = # empty', e.g. chinese/cless (empty) games/angband (cc -E) games/xtux (${CC} -E) graphics/xpx (empty) sysutils/logrotate (${CC} -E) irc/dancer (empty) japanese/ircII (empty) > > .if !empty(.CURDIR:M/usr/ports/*) && exists(/usr/local/bin/gcc44) > CC=gcc44 > CXX=g++44 > CPP=cpp44 > .endif > > And it worked fine. And? I use symlinks/PATH, e.g. cc -> ccache -> gcc45. But both ways don't help for above ports. > >> - and using absolute paths breaks devel/ccache usage > > I'm not sure what you mean here. This works with my patch: > > rfarmer@thinkpad /home/lcvs/ports/java/openjdk6 > % make CC=/usr/local/libexec/ccache/gcc CXX=/usr/local/libexec/ccache/g++ Try setting it from environment or make.conf. Assignments on command line override even `=', not only `?='.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201012260610.oBQ6AAdx093681>