8167387: libjimage.so has a bad runpath
authorerikj
Tue, 11 Oct 2016 12:25:54 +0200
changeset 41475 e5ebda6a1a83
parent 41474 eaa1c85db7d8
child 41476 7fc722354621
8167387: libjimage.so has a bad runpath Reviewed-by: tbell, ihse
jdk/make/lib/CoreLibraries.gmk
--- a/jdk/make/lib/CoreLibraries.gmk	Tue Oct 11 15:12:40 2016 +0530
+++ b/jdk/make/lib/CoreLibraries.gmk	Tue Oct 11 12:25:54 2016 +0200
@@ -255,7 +255,7 @@
     CXXFLAGS := $(CXXFLAGS_JDKLIB) $(JIMAGELIB_CPPFLAGS), \
     CFLAGS_unix := -UDEBUG, \
     MAPFILE := $(JDK_TOPDIR)/make/mapfiles/libjimage/mapfile-vers, \
-    LDFLAGS := $(LDFLAGS_JDKLIB) \
+    LDFLAGS := $(LDFLAGS_JDKLIB) $(LDFLAGS_CXX_JDK) \
         $(call SET_SHARED_LIBRARY_ORIGIN), \
     LDFLAGS_windows := -export:JIMAGE_Open -export:JIMAGE_Close \
         -export:JIMAGE_PackageToModule \