Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 29 Sep 2010 01:10:35 GMT
From:      Rob Farmer <rfarmer@predatorlabs.net>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/151042: [patch] java/openjdk6 Respect CC
Message-ID:  <201009290110.o8T1AZ0T083879@www.freebsd.org>
Resent-Message-ID: <201009290120.o8T1K1Cv037352@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         151042
>Category:       ports
>Synopsis:       [patch] java/openjdk6 Respect CC
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Sep 29 01:20:01 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     Rob Farmer
>Release:        9.0-CURRENT
>Organization:
>Environment:
FreeBSD turquoise.predatorlabs.net 9.0-CURRENT FreeBSD 9.0-CURRENT #0 r213181: Sat Sep 25 21:30:26 PDT 2010     rfarmer@turquoise.predatorlabs.net:/usr/obj/usr/src/sys/TURQUOISE  amd64
>Description:
Use ?= instead of = to set CC, CXX, and CPP which allows use of other compilers like lang/gcc45
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

Index: files/patch-set
===================================================================
RCS file: /home/ncvs/ports/java/openjdk6/files/patch-set,v
retrieving revision 1.9
diff -u -r1.9 patch-set
--- files/patch-set	15 Aug 2010 05:23:07 -0000	1.9
+++ files/patch-set	28 Sep 2010 06:46:18 -0000
@@ -209,9 +209,9 @@
  
 +ifeq ($(PLATFORM), bsd)
 +  # Settings specific to BSD
-+  CC             = $(COMPILER_PATH)gcc
-+  CPP            = $(COMPILER_PATH)gcc -E
-+  CXX            = $(COMPILER_PATH)g++
++  CC             ?= $(COMPILER_PATH)gcc
++  CPP            ?= $(COMPILER_PATH)gcc -E
++  CXX            ?= $(COMPILER_PATH)g++
 +  REQUIRED_CC_VER = 3.3
 +  REQUIRED_GCC_VER = 3.3.*
 +
@@ -6732,9 +6732,9 @@
 +ifeq ($(PLATFORM), bsd)
 +
 +  # Settings specific to BSD
-+  CC             = $(COMPILER_PATH)gcc
-+  CPP            = $(COMPILER_PATH)gcc -E
-+  CXX            = $(COMPILER_PATH)g++
++  CC             ?= $(COMPILER_PATH)gcc
++  CPP            ?= $(COMPILER_PATH)gcc -E
++  CXX            ?= $(COMPILER_PATH)g++
 +  REQUIRED_CC_VER = 3.2
 +
 +  # Option used to create a shared library


>Release-Note:
>Audit-Trail:
>Unformatted:



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