changeset 8856:f175513c2c3a

8205104: EXTRA_LDFLAGS not consistently being used Summary: Add EXTRA_LDFLAGS to linker flags for relevant libraries. Reviewed-by: ihse
author sgehwolf
date Fri, 15 Jun 2018 14:30:02 +0200
parents c741a7bc982a
children ae93017b2930
files make/aix/makefiles/jsig.make make/aix/makefiles/saproc.make make/aix/makefiles/vm.make make/bsd/makefiles/jsig.make make/bsd/makefiles/saproc.make make/bsd/makefiles/vm.make make/linux/makefiles/jsig.make make/linux/makefiles/saproc.make make/linux/makefiles/vm.make
diffstat 9 files changed, 9 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/make/aix/makefiles/jsig.make	Thu Jun 14 21:39:57 2018 +0000
+++ b/make/aix/makefiles/jsig.make	Fri Jun 15 14:30:02 2018 +0200
@@ -45,7 +45,7 @@
 # cause problems with interposing. See CR: 6466665
 # LFLAGS_JSIG += $(MAPFLAG:FILENAME=$(LIBJSIG_MAPFILE))
 
-LFLAGS_JSIG += -D_GNU_SOURCE -D_REENTRANT $(LDFLAGS_HASH_STYLE)
+LFLAGS_JSIG += -D_GNU_SOURCE -D_REENTRANT $(LDFLAGS_HASH_STYLE) $(EXTRA_LDFLAGS)
 
 LFLAGS_JSIG += $(BIN_UTILS)
 
--- a/make/aix/makefiles/saproc.make	Thu Jun 14 21:39:57 2018 +0000
+++ b/make/aix/makefiles/saproc.make	Fri Jun 15 14:30:02 2018 +0200
@@ -66,7 +66,7 @@
 endif
 
 
-SA_LFLAGS = $(MAPFLAG:FILENAME=$(SAMAPFILE)) $(LDFLAGS_HASH_STYLE)
+SA_LFLAGS = $(MAPFLAG:FILENAME=$(SAMAPFILE)) $(LDFLAGS_HASH_STYLE) $(EXTRA_LDFLAGS)
 
 $(LIBSAPROC): $(SASRCFILES) $(SAMAPFILE)
 	$(QUIETLY) if [ "$(BOOT_JAVA_HOME)" = "" ]; then \
--- a/make/aix/makefiles/vm.make	Thu Jun 14 21:39:57 2018 +0000
+++ b/make/aix/makefiles/vm.make	Fri Jun 15 14:30:02 2018 +0200
@@ -117,7 +117,7 @@
 
 # Extra flags from gnumake's invocation or environment
 CFLAGS += $(EXTRA_CFLAGS)
-LFLAGS += $(EXTRA_CFLAGS)
+LFLAGS += $(EXTRA_CFLAGS) $(EXTRA_LDFLAGS)
 
 # Don't set excutable bit on stack segment
 # the same could be done by separate execstack command
--- a/make/bsd/makefiles/jsig.make	Thu Jun 14 21:39:57 2018 +0000
+++ b/make/bsd/makefiles/jsig.make	Fri Jun 15 14:30:02 2018 +0200
@@ -52,7 +52,7 @@
 # cause problems with interposing. See CR: 6466665
 # LFLAGS_JSIG += $(MAPFLAG:FILENAME=$(LIBJSIG_MAPFILE))
 
-LFLAGS_JSIG += -D_GNU_SOURCE -pthread $(LDFLAGS_HASH_STYLE)
+LFLAGS_JSIG += -D_GNU_SOURCE -pthread $(LDFLAGS_HASH_STYLE) $(EXTRA_LDFLAGS)
 
 # DEBUG_BINARIES overrides everything, use full -g debug information
 ifeq ($(DEBUG_BINARIES), true)
--- a/make/bsd/makefiles/saproc.make	Thu Jun 14 21:39:57 2018 +0000
+++ b/make/bsd/makefiles/saproc.make	Fri Jun 15 14:30:02 2018 +0200
@@ -114,7 +114,7 @@
 # bring in minimum version argument or we'll fail on OSX 10.10
 SA_LFLAGS = $(LFLAGS)
 endif
-SA_LFLAGS += $(LDFLAGS_HASH_STYLE)
+SA_LFLAGS += $(LDFLAGS_HASH_STYLE) $(EXTRA_LDFLAGS)
 
 BOOT_JAVA_INCLUDES = -I$(BOOT_JAVA_HOME)/include \
   -I$(BOOT_JAVA_HOME)/include/$(shell uname -s | tr "[:upper:]" "[:lower:]")
--- a/make/bsd/makefiles/vm.make	Thu Jun 14 21:39:57 2018 +0000
+++ b/make/bsd/makefiles/vm.make	Fri Jun 15 14:30:02 2018 +0200
@@ -119,7 +119,7 @@
 
 # Extra flags from gnumake's invocation or environment
 CFLAGS += $(EXTRA_CFLAGS)
-LFLAGS += $(EXTRA_CFLAGS)
+LFLAGS += $(EXTRA_CFLAGS) $(EXTRA_LDFLAGS)
 
 # Don't set excutable bit on stack segment
 # the same could be done by separate execstack command
--- a/make/linux/makefiles/jsig.make	Thu Jun 14 21:39:57 2018 +0000
+++ b/make/linux/makefiles/jsig.make	Fri Jun 15 14:30:02 2018 +0200
@@ -44,7 +44,7 @@
 # cause problems with interposing. See CR: 6466665
 # LFLAGS_JSIG += $(MAPFLAG:FILENAME=$(LIBJSIG_MAPFILE))
 
-LFLAGS_JSIG += -D_GNU_SOURCE -D_REENTRANT $(LDFLAGS_HASH_STYLE) $(LDFLAGS_NO_EXEC_STACK)
+LFLAGS_JSIG += -D_GNU_SOURCE -D_REENTRANT $(LDFLAGS_HASH_STYLE) $(LDFLAGS_NO_EXEC_STACK) $(EXTRA_LDFLAGS)
 
 # DEBUG_BINARIES overrides everything, use full -g debug information
 ifeq ($(DEBUG_BINARIES), true)
--- a/make/linux/makefiles/saproc.make	Thu Jun 14 21:39:57 2018 +0000
+++ b/make/linux/makefiles/saproc.make	Fri Jun 15 14:30:02 2018 +0200
@@ -74,7 +74,7 @@
 ALT_SAINCDIR=
 endif
 SA_LFLAGS = $(MAPFLAG:FILENAME=$(SAMAPFILE)) $(LDFLAGS_HASH_STYLE) \
-            $(LDFLAGS_NO_EXEC_STACK)
+            $(LDFLAGS_NO_EXEC_STACK) $(EXTRA_LDFLAGS)
 
 SAARCH ?= $(BUILDARCH)
 
--- a/make/linux/makefiles/vm.make	Thu Jun 14 21:39:57 2018 +0000
+++ b/make/linux/makefiles/vm.make	Fri Jun 15 14:30:02 2018 +0200
@@ -122,7 +122,7 @@
 
 # Extra flags from gnumake's invocation or environment
 CFLAGS += $(EXTRA_CFLAGS)
-LFLAGS += $(EXTRA_CFLAGS)
+LFLAGS += $(EXTRA_CFLAGS) $(EXTRA_LDFLAGS)
 
 # Don't set excutable bit on stack segment
 # the same could be done by separate execstack command