make/autoconf/flags.m4
changeset 51783 4482acfef2a5
parent 51641 9ce4a0d718c7
child 52351 0ecb4e520110
child 56900 d5d542d50e3c
--- a/make/autoconf/flags.m4	Tue Sep 11 18:18:51 2018 +0200
+++ b/make/autoconf/flags.m4	Tue Sep 18 13:32:40 2018 +0200
@@ -336,8 +336,12 @@
     CC_OUT_OPTION='-o$(SPACE)'
     # 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)'
+    # When archiving, how to specify the destination static archive.
+    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)