summaryrefslogtreecommitdiffstats
path: root/java/jdk13/files/patch-common::Defs-bsd.gmk
blob: fe0567e8264f8c81f949567a2dda472d3998399e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
$FreeBSD: ports/java/jdk13/files/patch-common::Defs-bsd.gmk,v 1.7 2004/08/10 20:28:44 glewis Exp $

--- common/Defs-bsd.gmk.orig    Thu Dec 18 22:33:22 2003
+++ common/Defs-bsd.gmk Thu Dec 18 22:36:46 2003
@@ -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
-DEVTOOLS_PATH = /usr/local/bin/
+DEVTOOLS_PATH = $(LOCALBASE)/bin/
 endif
 # Allow the user to override the default value...
 ifdef ALT_DEVTOOLS_PATH
@@ -266,9 +267,9 @@
 CFLAGS_COMMON  += -fsigned-char
 CXXFLAGS_COMMON+= -fsigned-char
 endif
-CFLAGS_OPT      = $(POPT)
+CFLAGS_OPT      = $(POPT) $(SYS_CFLAGS)
 CFLAGS_DBG      = -g3 $(POPT)
-CXXFLAGS_OPT   = $(POPT)
+CXXFLAGS_OPT   = $(POPT) $(SYS_CFLAGS)
 CXXFLAGS_DBG   = -g3 $(POPT)
 
 CPPFLAGS_COMMON = -D$(ARCH) -DARCH='"$(ARCH)"' -DSOLARIS2 $(VERSION_DEFINES) \