make/autoconf/flags-cflags.m4
branchihse-cflags-rewrite-branch
changeset 56158 97b2b2de66f2
parent 56146 d019a80c41c0
child 56161 a7585ecb9fc2
--- a/make/autoconf/flags-cflags.m4	Mon Feb 19 23:25:11 2018 +0100
+++ b/make/autoconf/flags-cflags.m4	Tue Feb 20 12:05:50 2018 +0100
@@ -44,7 +44,7 @@
       if test "x$STATIC_BUILD" = xtrue; then
         SHARED_LIBRARY_FLAGS ='-undefined dynamic_lookup'
       else
-        SHARED_LIBRARY_FLAGS="-dynamiclib -compatibility_version 1.0.0 -current_version 1.0.0 $PICFLAG"
+        SHARED_LIBRARY_FLAGS="-dynamiclib -compatibility_version 1.0.0 -current_version 1.0.0 -fPIC"
       fi
       SET_EXECUTABLE_ORIGIN='-Wl,-rpath,@loader_path$(or [$]1,/.)'
       SET_SHARED_LIBRARY_ORIGIN="$SET_EXECUTABLE_ORIGIN"
@@ -65,7 +65,7 @@
     if test "x$OPENJDK_TARGET_OS" = xmacosx; then
       # Linking is different on MacOSX
       PICFLAG=''
-      SHARED_LIBRARY_FLAGS="-dynamiclib -compatibility_version 1.0.0 -current_version 1.0.0 $PICFLAG"
+      SHARED_LIBRARY_FLAGS="-dynamiclib -compatibility_version 1.0.0 -current_version 1.0.0"
       SET_EXECUTABLE_ORIGIN='-Wl,-rpath,@loader_path$(or [$]1,/.)'
       SET_SHARED_LIBRARY_ORIGIN="$SET_EXECUTABLE_ORIGIN"
       SET_SHARED_LIBRARY_NAME='-Wl,-install_name,@rpath/[$]1'