ports/151042: [patch] java/openjdk6 Respect CC
Rob Farmer
rfarmer at predatorlabs.net
Sat Dec 25 23:50:05 UTC 2010
The following reply was made to PR ports/151042; it has been noted by GNATS.
From: Rob Farmer <rfarmer at predatorlabs.net>
To: Anonymous <swell.k at gmail.com>
Cc: bug-followup at freebsd.org
Subject: Re: ports/151042: [patch] java/openjdk6 Respect CC
Date: Sat, 25 Dec 2010 15:49:58 -0800
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:
.if !empty(.CURDIR:M/usr/ports/*) && exists(/usr/local/bin/gcc44)
CC=gcc44
CXX=g++44
CPP=cpp44
.endif
And it worked fine.
> - 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++
--
Rob Farmer
More information about the freebsd-java
mailing list