Move setting required -stdlib argument into configure.ac

This commit is contained in:
Marvin Greenberg 2014-02-05 15:18:51 -08:00
commit 49d73c56d0
2 changed files with 10 additions and 1 deletions

View file

@ -25,7 +25,7 @@ TARGET =
CC = @CC@
CXX = @CXX@
CFLAGS = @PLATCFLAGS@
CXXFLAGS = @BOOST_CPPFLAGS@ @PLATCXXFLAGS@ $(filter -stdlib%,@CXXFLAGS@)
CXXFLAGS = @BOOST_CPPFLAGS@ @PLATCXXFLAGS@
prefix = @prefix@
exec_prefix= @exec_prefix@
SRCS =

View file

@ -352,6 +352,15 @@ if test x"$enable_cpp11_testing" = xyes; then
fi
fi
# On darwin before Mavericks when using clang, need to ensure using
# libc++ for tests and examples to run under mono
case $host in
*-*-darwin*) if test "$CXX" = "clang++";
then PLATCXXFLAGS="$PLATCXXFLAGS -stdlib=libc++"
fi;;
*) ;;
esac
# Set info about shared libraries.
AC_SUBST(SO)
AC_SUBST(LDSHARED)