ports/151042: [patch] java/openjdk6 Respect CC
Anonymous
swell.k at gmail.com
Sun Dec 26 06:10:10 UTC 2010
The following reply was made to PR ports/151042; it has been noted by GNATS.
From: Anonymous <swell.k at gmail.com>
To: Rob Farmer <rfarmer at predatorlabs.net>
Cc: bug-followup at freebsd.org
Subject: Re: ports/151042: [patch] java/openjdk6 Respect CC
Date: Sun, 26 Dec 2010 09:08:00 +0300
Rob Farmer <rfarmer at predatorlabs.net> writes:
> On Sat, Dec 25, 2010 at 01:55, Anonymous <swell.k at 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 at 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 `?='.
More information about the freebsd-java
mailing list