Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 25 Dec 2010 23:50:05 GMT
From:      Rob Farmer <rfarmer@predatorlabs.net>
To:        freebsd-java@FreeBSD.org
Subject:   Re: ports/151042: [patch] java/openjdk6 Respect CC
Message-ID:  <201012252350.oBPNo50J080998@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: Rob Farmer <rfarmer@predatorlabs.net>
To: Anonymous <swell.k@gmail.com>
Cc: bug-followup@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@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@thinkpad /home/lcvs/ports/java/openjdk6
  % make CC=/usr/local/libexec/ccache/gcc CXX=/usr/local/libexec/ccache/g++
 
 -- 
 Rob Farmer



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