[Libreoffice-commits] core.git: configure.ac

Tor Lillqvist tml at collabora.com
Wed Jan 15 00:30:31 PST 2014


 configure.ac |   12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)

New commits:
commit 0b3513f34d1b930c17f42ac2cadad7fa43636848
Author: Tor Lillqvist <tml at collabora.com>
Date:   Wed Jan 15 10:28:01 2014 +0200

    Let's always use libc++ when building for iOS against a current SDK
    
    I have been using it for a while and it seems to work fine. No need to
    default to libstdc++.
    
    Change-Id: Ifa6999921b1333317c112f57fa402188f787d27d

diff --git a/configure.ac b/configure.ac
index d4a6a13..4c64535 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1241,8 +1241,7 @@ AC_ARG_WITH(macosx-bundle-identifier,
 AC_ARG_ENABLE(libc++,
     AS_HELP_STRING([--enable-libc++],
         [Use the libc++ C++ library instead of GNU libstdc++ on OS X. Only effective
-         if --with-macosx-version-min-required is 10.7 or later. Experimental work in
-         progress, very likely breaks something, don't use unless you plan to fix that.]),
+         if --with-macosx-version-min-required is 10.7 or later.]),
 ,)
 
 AC_ARG_ENABLE(ios-simulator,
@@ -3001,7 +3000,9 @@ if test $_os = iOS; then
     # Just add -fvisibility=hidden to CC and CXX directly so that the 3rd-party libs also
     # get compiled with it, to avoid ld warnings when linking all that together into one
     # executable.
-    # Use libc++ if opted in only, and only when building against iOS 7 SDK or newer.
+
+    # Use libc++ for iOS 7 SDK and libstdc++ for earlier (but we don't really expect anybody to
+    # be be using an earlier SDK)
 
     XCODE_CLANG_CXX_LIBRARY=libstdc++
     case $ios_sdk in
@@ -3011,9 +3012,10 @@ if test $_os = iOS; then
         fi
         ;;
     *)
-        if test "$enable_libc__" = yes; then
-            XCODE_CLANG_CXX_LIBRARY=libc++
+        if test "$enable_libc__" = no; then
+            AC_MSG_ERROR([--disable-libc++ not allowed])
         fi
+        XCODE_CLANG_CXX_LIBRARY=libc++
         ;;
     esac
 


More information about the Libreoffice-commits mailing list