Also add C++11 options to OBJCXXFLAGS in configure
We need these options in both CXXFLAGS and OBJCXXFLAGS, otherwise Objective-C++ code would fail to compile when including C++11 headers such as <type_traits>.
This commit is contained in:
7
configure
vendored
7
configure
vendored
@@ -20186,6 +20186,10 @@ $as_echo "#define HAVE_CXX11 1" >>confdefs.h
|
||||
|
||||
fi
|
||||
|
||||
|
||||
if test "$HAVE_CXX11" = "1" ; then
|
||||
OBJCXXFLAGS="$OBJCXXFLAGS $switch"
|
||||
fi
|
||||
fi
|
||||
|
||||
if test "x$SUNCXX" != xyes; then
|
||||
@@ -20415,7 +20419,8 @@ if test "x$wxUSE_MACOSX_VERSION_MIN" != "x"; then
|
||||
fi
|
||||
|
||||
if test "$HAVE_CXX11" = "1" ; then
|
||||
CXXFLAGS="$CXXFLAGS -stdlib=libc++"
|
||||
CXXFLAGS="$CXXFLAGS -stdlib=libc++"
|
||||
OBJCXXFLAGS="$OBJCXXFLAGS -stdlib=libc++"
|
||||
LDFLAGS="$LDFLAGS -stdlib=libc++"
|
||||
fi
|
||||
|
||||
|
Reference in New Issue
Block a user