summaryrefslogtreecommitdiff
path: root/java/jdk13/files/patch-gcc.make
diff options
context:
space:
mode:
authorGreg Lewis <glewis@FreeBSD.org>2004-11-27 05:48:23 +0000
committerGreg Lewis <glewis@FreeBSD.org>2004-11-27 05:48:23 +0000
commit3883849c28bd8ebbe392e0f1e664d8f0ea3e70ca (patch)
treee7736df8651e0b921d987f4a5b75053a5dd19056 /java/jdk13/files/patch-gcc.make
parent[MAINTAINER] lang/pike72: Try to fix non i386 compilation breakage. (diff)
. Fix the build with gcc 3.4 part 2/2. Don't use the flag
-fmemoize-lookups as gcc 3.4 doesn't understand it. [1] . Use CXX and CXXFLAGS for compiling C++ code, not CPP and CPPFLAGS. Also, respect the setting of CXX and CXXFLAGS. PR: 71516 [1] Submitted by: Damir Kiramov <damirycha@damirycha.net.ru> [1]
Diffstat (limited to 'java/jdk13/files/patch-gcc.make')
-rw-r--r--java/jdk13/files/patch-gcc.make24
1 files changed, 24 insertions, 0 deletions
diff --git a/java/jdk13/files/patch-gcc.make b/java/jdk13/files/patch-gcc.make
new file mode 100644
index 000000000000..daba5a107285
--- /dev/null
+++ b/java/jdk13/files/patch-gcc.make
@@ -0,0 +1,24 @@
+$FreeBSD$
+
+--- ../../hotspot1.3.1/build/linux/makefiles/gcc.make 23 Apr 2003 18:04:37 -0000 1.6
++++ ../../hotspot1.3.1/build/linux/makefiles/gcc.make 22 Nov 2004 17:19:42 -0000
+@@ -36,8 +36,6 @@
+
+
+ #####
+-#harmless
+-OPT_CFLAGS += -fmemoize-lookups
+ #unneeded
+ #OPT_CFLAGS += -fpeephole
+ #bad
+@@ -51,8 +49,8 @@
+ # Set the environment variable HOTSPARC_HOTSPARC_GENERIC to "true"
+ # to inhibit the effect of the previous line on CFLAGS.
+
+-CPP = g++
+-CC = gcc
++CXX ?= g++
++CC ?= gcc
+
+ AOUT_FLAGS += -export-dynamic
+ DEBUG_CFLAGS += -g