8142907: Integration of minor fixes from the build-infra project
Reviewed-by: erikj, dholmes
--- a/hotspot/make/lib/Lib-jdk.hotspot.agent.gmk Wed Jul 05 21:07:43 2017 +0200
+++ b/hotspot/make/lib/Lib-jdk.hotspot.agent.gmk Tue Dec 15 11:02:49 2015 +0100
@@ -71,7 +71,7 @@
-DSOLARIS_11_B159_OR_LATER
SA_CFLAGS := $(CFLAGS_JDKLIB) $(COMMON_CFLAGS)
SA_CXXFLAGS := $(CXXFLAGS_JDKLIB) $(COMMON_CFLAGS)
- SA_LDFLAGS := $(subst -z defs,, $(LDFLAGS_JDKLIB)) \
+ SA_LDFLAGS := $(subst -Wl$(COMMA)-z$(COMMA)defs,, $(LDFLAGS_JDKLIB)) \
-mt $(LDFLAGS_CXX_JDK)
SA_LIBS := -ldl -ldemangle -lthread -lc