aboutsummaryrefslogtreecommitdiffstats
path: root/java
diff options
context:
space:
mode:
authorglewis <glewis@FreeBSD.org>2004-08-11 04:28:44 +0800
committerglewis <glewis@FreeBSD.org>2004-08-11 04:28:44 +0800
commite35f8fe8d46986e4579fe58025ef753101455f9f (patch)
tree067eef81c352b0a7e941642878ee1701b31a1ba9 /java
parent027fd828497ef547e59cfda39c0751b6c07cc1c2 (diff)
downloadfreebsd-ports-gnome-e35f8fe8d46986e4579fe58025ef753101455f9f.tar.gz
freebsd-ports-gnome-e35f8fe8d46986e4579fe58025ef753101455f9f.tar.zst
freebsd-ports-gnome-e35f8fe8d46986e4579fe58025ef753101455f9f.zip
. Set CC, CXX and CPP conditionally so that this port will respect them
if set in the port build. Note that the HotSpot build will likely require additional changes for it to also respect these variables.
Diffstat (limited to 'java')
-rw-r--r--java/jdk13/files/patch-common::Defs-bsd.gmk18
1 files changed, 16 insertions, 2 deletions
diff --git a/java/jdk13/files/patch-common::Defs-bsd.gmk b/java/jdk13/files/patch-common::Defs-bsd.gmk
index 9ce2386aec4c..67e497d01c5f 100644
--- a/java/jdk13/files/patch-common::Defs-bsd.gmk
+++ b/java/jdk13/files/patch-common::Defs-bsd.gmk
@@ -2,7 +2,21 @@ $FreeBSD$
--- common/Defs-bsd.gmk.orig Thu Dec 18 22:33:22 2003
+++ common/Defs-bsd.gmk Thu Dec 18 22:36:46 2003
-@@ -131,7 +131,7 @@
+@@ -32,9 +32,10 @@
+ AR = $(USRBIN_PATH)ar
+ AS = $(USRBIN_PATH)as
+ CAT = $(UNIXCOMMAND_PATH)cat
+-CC = $(COMPILER_PATH)gcc
+-CPP = $(COMPILER_PATH)gcc -E
+-CXX = $(COMPILER_PATH)g++
++# Allow ports/pkgsrc infrastructure to override CC, CPP and CXX.
++CC ?= $(COMPILER_PATH)gcc
++CPP ?= $(COMPILER_PATH)gcc -E
++CXX ?= $(COMPILER_PATH)g++
+ CD = cd # intrinsic unix command
+ CHMOD = $(UNIXCOMMAND_PATH)chmod
+ CMP = $(USRBIN_PATH)cmp
+@@ -131,7 +132,7 @@
ifeq ($(TRUE_PLATFORM), NetBSD)
DEVTOOLS_PATH = /usr/pkg/bin/
else
@@ -11,7 +25,7 @@ $FreeBSD$
endif
# Allow the user to override the default value...
ifdef ALT_DEVTOOLS_PATH
-@@ -266,9 +266,9 @@
+@@ -266,9 +267,9 @@
CFLAGS_COMMON += -fsigned-char
CXXFLAGS_COMMON+= -fsigned-char
endif