Blame SOURCES/jdk8281098-pr3836-pass_compiler_flags_to_adlc.patch

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