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:
parent
9e6af23062
commit
7aedb3f064
4
configure
vendored
4
configure
vendored
@ -20419,9 +20419,7 @@ if test "x$wxUSE_MACOSX_VERSION_MIN" != "x"; then
|
||||
fi
|
||||
|
||||
if test "$HAVE_CXX11" = "1" ; then
|
||||
CXXFLAGS="$CXXFLAGS -stdlib=libc++"
|
||||
OBJCXXFLAGS="$OBJCXXFLAGS -stdlib=libc++"
|
||||
LDFLAGS="$LDFLAGS -stdlib=libc++"
|
||||
eval "CXX=\"$CXX -stdlib=libc++\""
|
||||
fi
|
||||
|
||||
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
|
||||
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 when linking.
|
||||
CXXFLAGS="$CXXFLAGS -stdlib=libc++"
|
||||
OBJCXXFLAGS="$OBJCXXFLAGS -stdlib=libc++"
|
||||
LDFLAGS="$LDFLAGS -stdlib=libc++"
|
||||
dnl C++11 support, both when compiling (for both C++ and Objective-C++, so
|
||||
dnl putting this in just CXXFLAGS wouldn't be enough) and when linking
|
||||
dnl (both libraries and plugins, using bakefile shared-ld-sh script which
|
||||
dnl doesn't handle this option, so putting it in LDFLAGS wouldn't work).
|
||||
eval "CXX=\"$CXX -stdlib=libc++\""
|
||||
fi
|
||||
|
||||
dnl If either an SDK or a version option was added, make sure that we can
|
||||
|
Loading…
Reference in New Issue
Block a user