Revert to using -stdlib=libc++ as part of CXX under OS X
Putting it in LDFLAGS breaks compilation of plugins using shared-ld-sh script for linking as it doesn't support this option.
This commit is contained in:
4
configure
vendored
4
configure
vendored
@@ -20419,9 +20419,7 @@ if test "x$wxUSE_MACOSX_VERSION_MIN" != "x"; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if test "$HAVE_CXX11" = "1" ; then
|
if test "$HAVE_CXX11" = "1" ; then
|
||||||
CXXFLAGS="$CXXFLAGS -stdlib=libc++"
|
eval "CXX=\"$CXX -stdlib=libc++\""
|
||||||
OBJCXXFLAGS="$OBJCXXFLAGS -stdlib=libc++"
|
|
||||||
LDFLAGS="$LDFLAGS -stdlib=libc++"
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test "x$retest_macosx_linking" = "xyes"; then
|
if test "x$retest_macosx_linking" = "xyes"; then
|
||||||
|
10
configure.in
10
configure.in
@@ -1239,11 +1239,11 @@ fi
|
|||||||
|
|
||||||
if test "$HAVE_CXX11" = "1" ; then
|
if test "$HAVE_CXX11" = "1" ; then
|
||||||
dnl We also need to use libc++ standard library instead of libstdc++ for
|
dnl We also need to use libc++ standard library instead of libstdc++ for
|
||||||
dnl C++11 support, both when compiling (for both C++ and Objective-C++) and
|
dnl C++11 support, both when compiling (for both C++ and Objective-C++, so
|
||||||
dnl when linking.
|
dnl putting this in just CXXFLAGS wouldn't be enough) and when linking
|
||||||
CXXFLAGS="$CXXFLAGS -stdlib=libc++"
|
dnl (both libraries and plugins, using bakefile shared-ld-sh script which
|
||||||
OBJCXXFLAGS="$OBJCXXFLAGS -stdlib=libc++"
|
dnl doesn't handle this option, so putting it in LDFLAGS wouldn't work).
|
||||||
LDFLAGS="$LDFLAGS -stdlib=libc++"
|
eval "CXX=\"$CXX -stdlib=libc++\""
|
||||||
fi
|
fi
|
||||||
|
|
||||||
dnl If either an SDK or a version option was added, make sure that we can
|
dnl If either an SDK or a version option was added, make sure that we can
|
||||||
|
Reference in New Issue
Block a user