Blame SOURCES/pr3539-rh1548475.patch

43ae3d
# HG changeset patch
43ae3d
# User andrew
43ae3d
# Date 1526065930 -3600
43ae3d
#      Fri May 11 20:12:10 2018 +0100
43ae3d
# Node ID b8fc1e640c4c7f38ca94131279cb67c4d3de6961
43ae3d
# Parent  afb31413c73cbc06420fdb447aa90a7a38258904
43ae3d
PR3539, RH1548475: Pass EXTRA_LDFLAGS to HotSpot build
43ae3d
43ae3d
diff --git openjdk.orig/hotspot/make/aix/makefiles/jsig.make openjdk/hotspot/make/aix/makefiles/jsig.make
43ae3d
--- openjdk.orig/hotspot/make/aix/makefiles/jsig.make
43ae3d
+++ openjdk/hotspot/make/aix/makefiles/jsig.make
43ae3d
@@ -45,7 +45,7 @@
43ae3d
 # cause problems with interposing. See CR: 6466665
43ae3d
 # LFLAGS_JSIG += $(MAPFLAG:FILENAME=$(LIBJSIG_MAPFILE))
43ae3d
 
43ae3d
-LFLAGS_JSIG += -D_GNU_SOURCE -D_REENTRANT $(LDFLAGS_HASH_STYLE)
43ae3d
+LFLAGS_JSIG += -D_GNU_SOURCE -D_REENTRANT $(LDFLAGS_HASH_STYLE) $(EXTRA_LDFLAGS)
43ae3d
 
43ae3d
 LFLAGS_JSIG += $(BIN_UTILS)
43ae3d
 
43ae3d
diff --git openjdk.orig/hotspot/make/aix/makefiles/saproc.make openjdk/hotspot/make/aix/makefiles/saproc.make
43ae3d
--- openjdk.orig/hotspot/make/aix/makefiles/saproc.make
43ae3d
+++ openjdk/hotspot/make/aix/makefiles/saproc.make
43ae3d
@@ -66,7 +66,7 @@
43ae3d
 endif
43ae3d
 
43ae3d
 
43ae3d
-SA_LFLAGS = $(MAPFLAG:FILENAME=$(SAMAPFILE)) $(LDFLAGS_HASH_STYLE)
43ae3d
+SA_LFLAGS = $(MAPFLAG:FILENAME=$(SAMAPFILE)) $(LDFLAGS_HASH_STYLE) $(EXTRA_LDFLAGS)
43ae3d
 
43ae3d
 $(LIBSAPROC): $(SASRCFILES) $(SAMAPFILE)
43ae3d
 	$(QUIETLY) if [ "$(BOOT_JAVA_HOME)" = "" ]; then \
43ae3d
diff --git openjdk.orig/hotspot/make/aix/makefiles/vm.make openjdk/hotspot/make/aix/makefiles/vm.make
43ae3d
--- openjdk.orig/hotspot/make/aix/makefiles/vm.make
43ae3d
+++ openjdk/hotspot/make/aix/makefiles/vm.make
43ae3d
@@ -117,7 +117,7 @@
43ae3d
 
43ae3d
 # Extra flags from gnumake's invocation or environment
43ae3d
 CFLAGS += $(EXTRA_CFLAGS)
43ae3d
-LFLAGS += $(EXTRA_CFLAGS)
43ae3d
+LFLAGS += $(EXTRA_CFLAGS) $(EXTRA_LDFLAGS)
43ae3d
 
43ae3d
 # Don't set excutable bit on stack segment
43ae3d
 # the same could be done by separate execstack command
43ae3d
diff --git openjdk.orig/hotspot/make/bsd/makefiles/jsig.make openjdk/hotspot/make/bsd/makefiles/jsig.make
43ae3d
--- openjdk.orig/hotspot/make/bsd/makefiles/jsig.make
43ae3d
+++ openjdk/hotspot/make/bsd/makefiles/jsig.make
43ae3d
@@ -52,7 +52,7 @@
43ae3d
 # cause problems with interposing. See CR: 6466665
43ae3d
 # LFLAGS_JSIG += $(MAPFLAG:FILENAME=$(LIBJSIG_MAPFILE))
43ae3d
 
43ae3d
-LFLAGS_JSIG += -D_GNU_SOURCE -pthread $(LDFLAGS_HASH_STYLE)
43ae3d
+LFLAGS_JSIG += -D_GNU_SOURCE -pthread $(LDFLAGS_HASH_STYLE) $(EXTRA_LDFLAGS)
43ae3d
 
43ae3d
 # DEBUG_BINARIES overrides everything, use full -g debug information
43ae3d
 ifeq ($(DEBUG_BINARIES), true)
43ae3d
diff --git openjdk.orig/hotspot/make/bsd/makefiles/saproc.make openjdk/hotspot/make/bsd/makefiles/saproc.make
43ae3d
--- openjdk.orig/hotspot/make/bsd/makefiles/saproc.make
43ae3d
+++ openjdk/hotspot/make/bsd/makefiles/saproc.make
43ae3d
@@ -114,7 +114,7 @@
43ae3d
 # bring in minimum version argument or we'll fail on OSX 10.10
43ae3d
 SA_LFLAGS = $(LFLAGS)
43ae3d
 endif
43ae3d
-SA_LFLAGS += $(LDFLAGS_HASH_STYLE)
43ae3d
+SA_LFLAGS += $(LDFLAGS_HASH_STYLE) $(EXTRA_LDFLAGS)
43ae3d
 
43ae3d
 BOOT_JAVA_INCLUDES = -I$(BOOT_JAVA_HOME)/include \
43ae3d
   -I$(BOOT_JAVA_HOME)/include/$(shell uname -s | tr "[:upper:]" "[:lower:]")
43ae3d
diff --git openjdk.orig/hotspot/make/bsd/makefiles/vm.make openjdk/hotspot/make/bsd/makefiles/vm.make
43ae3d
--- openjdk.orig/hotspot/make/bsd/makefiles/vm.make
43ae3d
+++ openjdk/hotspot/make/bsd/makefiles/vm.make
43ae3d
@@ -119,7 +119,7 @@
43ae3d
 
43ae3d
 # Extra flags from gnumake's invocation or environment
43ae3d
 CFLAGS += $(EXTRA_CFLAGS)
43ae3d
-LFLAGS += $(EXTRA_CFLAGS)
43ae3d
+LFLAGS += $(EXTRA_CFLAGS) $(EXTRA_LDFLAGS)
43ae3d
 
43ae3d
 # Don't set excutable bit on stack segment
43ae3d
 # the same could be done by separate execstack command
43ae3d
diff --git openjdk.orig/hotspot/make/linux/makefiles/jsig.make openjdk/hotspot/make/linux/makefiles/jsig.make
43ae3d
--- openjdk.orig/hotspot/make/linux/makefiles/jsig.make
43ae3d
+++ openjdk/hotspot/make/linux/makefiles/jsig.make
43ae3d
@@ -44,7 +44,7 @@
43ae3d
 # cause problems with interposing. See CR: 6466665
43ae3d
 # LFLAGS_JSIG += $(MAPFLAG:FILENAME=$(LIBJSIG_MAPFILE))
43ae3d
 
e22d77
-LFLAGS_JSIG += -D_GNU_SOURCE -D_REENTRANT $(LDFLAGS_HASH_STYLE) $(LDFLAGS_NO_EXEC_STACK)
e22d77
+LFLAGS_JSIG += -D_GNU_SOURCE -D_REENTRANT $(LDFLAGS_HASH_STYLE) $(LDFLAGS_NO_EXEC_STACK) $(EXTRA_LDFLAGS)
43ae3d
 
43ae3d
 # DEBUG_BINARIES overrides everything, use full -g debug information
43ae3d
 ifeq ($(DEBUG_BINARIES), true)
43ae3d
diff --git openjdk.orig/hotspot/make/linux/makefiles/saproc.make openjdk/hotspot/make/linux/makefiles/saproc.make
43ae3d
--- openjdk.orig/hotspot/make/linux/makefiles/saproc.make
43ae3d
+++ openjdk/hotspot/make/linux/makefiles/saproc.make
43ae3d
@@ -73,7 +73,7 @@
43ae3d
 else
43ae3d
 ALT_SAINCDIR=
43ae3d
 endif
43ae3d
-SA_LFLAGS = $(MAPFLAG:FILENAME=$(SAMAPFILE)) $(LDFLAGS_HASH_STYLE)
43ae3d
+SA_LFLAGS = $(MAPFLAG:FILENAME=$(SAMAPFILE)) $(LDFLAGS_HASH_STYLE) $(EXTRA_LDFLAGS)
43ae3d
 
43ae3d
 SAARCH ?= $(BUILDARCH)
43ae3d
 
43ae3d
diff --git openjdk.orig/hotspot/make/linux/makefiles/vm.make openjdk/hotspot/make/linux/makefiles/vm.make
43ae3d
--- openjdk.orig/hotspot/make/linux/makefiles/vm.make
43ae3d
+++ openjdk/hotspot/make/linux/makefiles/vm.make
e22d77
@@ -122,7 +122,7 @@
43ae3d
 
43ae3d
 # Extra flags from gnumake's invocation or environment
43ae3d
 CFLAGS += $(EXTRA_CFLAGS)
43ae3d
-LFLAGS += $(EXTRA_CFLAGS)
43ae3d
+LFLAGS += $(EXTRA_CFLAGS) $(EXTRA_LDFLAGS)
43ae3d
 
43ae3d
 # Don't set excutable bit on stack segment
43ae3d
 # the same could be done by separate execstack command