Blame SOURCES/jdk8281098-pr3836-pass_compiler_flags_to_adlc.patch

e188e1
# HG changeset patch
e188e1
# User Andrew John Hughes <gnu_andrew@member.fsf.org>
e188e1
# Date 1620365804 -3600
e188e1
#      Fri May 07 06:36:44 2021 +0100
e188e1
# Node ID 39b62f35eca823b4c9a98bc1dc0cb9acb87360f8
e188e1
# Parent  723b59ed1afe878c5cd35f080399c8ceec4f776b
e188e1
PR3836: Extra compiler flags not passed to adlc build
e188e1
e188e1
diff --git openjdk.orig/hotspot/make/aix/makefiles/adlc.make openjdk/hotspot/make/aix/makefiles/adlc.make
e188e1
--- openjdk.orig/hotspot/make/aix/makefiles/adlc.make
e188e1
+++ openjdk/hotspot/make/aix/makefiles/adlc.make
e188e1
@@ -69,6 +69,11 @@
e188e1
 CFLAGS_WARN = -w
e188e1
 CFLAGS += $(CFLAGS_WARN)
e188e1
 
e188e1
+# Extra flags from gnumake's invocation or environment
e188e1
+CFLAGS += $(EXTRA_CFLAGS)
e188e1
+LFLAGS += $(EXTRA_CFLAGS) $(EXTRA_LDFLAGS)
e188e1
+ASFLAGS += $(EXTRA_ASFLAGS)
e188e1
+
e188e1
 OBJECTNAMES = \
e188e1
 	adlparse.o \
e188e1
 	archDesc.o \
e188e1
diff --git openjdk.orig/hotspot/make/bsd/makefiles/adlc.make openjdk/hotspot/make/bsd/makefiles/adlc.make
e188e1
--- openjdk.orig/hotspot/make/bsd/makefiles/adlc.make
e188e1
+++ openjdk/hotspot/make/bsd/makefiles/adlc.make
e188e1
@@ -71,6 +71,11 @@
e188e1
 endif
e188e1
 CFLAGS += $(CFLAGS_WARN)
e188e1
 
e188e1
+# Extra flags from gnumake's invocation or environment
e188e1
+CFLAGS += $(EXTRA_CFLAGS)
e188e1
+LFLAGS += $(EXTRA_CFLAGS) $(EXTRA_LDFLAGS)
e188e1
+ASFLAGS += $(EXTRA_ASFLAGS)
e188e1
+
e188e1
 OBJECTNAMES = \
e188e1
 	adlparse.o \
e188e1
 	archDesc.o \
e188e1
diff --git openjdk.orig/hotspot/make/linux/makefiles/adlc.make openjdk/hotspot/make/linux/makefiles/adlc.make
e188e1
--- openjdk.orig/hotspot/make/linux/makefiles/adlc.make
e188e1
+++ openjdk/hotspot/make/linux/makefiles/adlc.make
e188e1
@@ -69,6 +69,11 @@
e188e1
 CFLAGS_WARN = $(WARNINGS_ARE_ERRORS)
e188e1
 CFLAGS += $(CFLAGS_WARN)
e188e1
 
e188e1
+# Extra flags from gnumake's invocation or environment
e188e1
+CFLAGS += $(EXTRA_CFLAGS)
e188e1
+LFLAGS += $(EXTRA_CFLAGS) $(EXTRA_LDFLAGS)
e188e1
+ASFLAGS += $(EXTRA_ASFLAGS)
e188e1
+
e188e1
 OBJECTNAMES = \
e188e1
 	adlparse.o \
e188e1
 	archDesc.o \
e188e1
diff --git openjdk.orig/hotspot/make/solaris/makefiles/adlc.make openjdk/hotspot/make/solaris/makefiles/adlc.make
e188e1
--- openjdk.orig/hotspot/make/solaris/makefiles/adlc.make
e188e1
+++ openjdk/hotspot/make/solaris/makefiles/adlc.make
e188e1
@@ -85,6 +85,10 @@
e188e1
 endif
e188e1
 CFLAGS += $(CFLAGS_WARN)
e188e1
 
e188e1
+# Extra flags from gnumake's invocation or environment
e188e1
+CFLAGS += $(EXTRA_CFLAGS)
e188e1
+ASFLAGS += $(EXTRA_ASFLAGS)
e188e1
+
e188e1
 ifeq ("${Platform_compiler}", "sparcWorks")
e188e1
 # Enable the following CFLAGS addition if you need to compare the
e188e1
 # built ELF objects.