From 3883849c28bd8ebbe392e0f1e664d8f0ea3e70ca Mon Sep 17 00:00:00 2001 From: Greg Lewis Date: Sat, 27 Nov 2004 05:48:23 +0000 Subject: . 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 [1] --- java/jdk13/files/patch-gcc31.make | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 java/jdk13/files/patch-gcc31.make (limited to 'java/jdk13/files/patch-gcc31.make') diff --git a/java/jdk13/files/patch-gcc31.make b/java/jdk13/files/patch-gcc31.make new file mode 100644 index 000000000000..33d4110159f4 --- /dev/null +++ b/java/jdk13/files/patch-gcc31.make @@ -0,0 +1,24 @@ +$FreeBSD$ + +--- ../../hotspot1.3.1/build/linux/makefiles/gcc31.make 14 Jul 2002 00:07:59 -0000 1.1 ++++ ../../hotspot1.3.1/build/linux/makefiles/gcc31.make 22 Nov 2004 17:19:42 -0000 +@@ -108,8 +108,6 @@ + + + ##### +-#harmless +-OPT_CFLAGS += -fmemoize-lookups + #unneeded + #OPT_CFLAGS += -fpeephole + #bad +@@ -123,8 +121,8 @@ + # Set the environment variable HOTSPARC_HOTSPARC_GENERIC to "true" + # to inhibit the effect of the previous line on CFLAGS. + +-CPP = g++31 +-CC = gcc31 ++CXX ?= g++31 ++CC ?= gcc31 + + AOUT_FLAGS += -export-dynamic + DEBUG_CFLAGS += -g -- cgit v1.2.3