From owner-freebsd-java@FreeBSD.ORG Sat Dec 25 23:50:05 2010 Return-Path: Delivered-To: freebsd-java@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6D2801065673 for ; Sat, 25 Dec 2010 23:50:05 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 3C0398FC15 for ; Sat, 25 Dec 2010 23:50:05 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id oBPNo5n3081000 for ; Sat, 25 Dec 2010 23:50:05 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id oBPNo50J080998; Sat, 25 Dec 2010 23:50:05 GMT (envelope-from gnats) Date: Sat, 25 Dec 2010 23:50:05 GMT Message-Id: <201012252350.oBPNo50J080998@freefall.freebsd.org> To: freebsd-java@FreeBSD.org From: Rob Farmer Cc: Subject: Re: ports/151042: [patch] java/openjdk6 Respect CC X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Rob Farmer List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 25 Dec 2010 23:50:05 -0000 The following reply was made to PR ports/151042; it has been noted by GNATS. From: Rob Farmer To: Anonymous 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 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