Experimental fix (?) for macosx ARFLAGS. ihse-remove-mapfiles-branch
authorihse
Fri, 15 Jun 2018 14:55:09 +0200
branchihse-remove-mapfiles-branch
changeset 56764 c5adaddb0d72
parent 56722 ec1e86ac2513
child 56765 d02da43d8b98
Experimental fix (?) for macosx ARFLAGS.
make/autoconf/flags.m4
--- a/make/autoconf/flags.m4	Mon Jun 11 11:25:51 2018 +0200
+++ b/make/autoconf/flags.m4	Fri Jun 15 14:55:09 2018 +0200
@@ -336,7 +336,11 @@
     # When linking, how to specify the output
     LD_OUT_OPTION='-o$(SPACE)'
     # When archiving, how to specify the to be create static archive for object files.
-    AR_OUT_OPTION='rcs$(SPACE)'
+    if test "x$OPENJDK_TARGET_OS" = xmacosx; then
+      AR_OUT_OPTION='-r -cs$(SPACE)'
+    else
+      AR_OUT_OPTION='-rcs$(SPACE)'
+    fi
   fi
   AC_SUBST(CC_OUT_OPTION)
   AC_SUBST(LD_OUT_OPTION)