Blame SOURCES/jdk8281098-pr3836-pass_compiler_flags_to_adlc.patch

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