Changed: Only compile with libc++ in C++

This commit is contained in:
kervala 2016-12-05 19:40:24 +01:00
parent aead758a0c
commit ac4df3b65a

View file

@ -840,9 +840,9 @@ MACRO(NL_SETUP_BUILD)
# use libc++ under OX X to be able to use new C++ features (and else it'll use GCC 4.2.1 STL)
# minimum target is now OS X 10.7
ADD_PLATFORM_FLAGS("-stdlib=libc++")
SET(PLATFORM_LINKFLAGS "${PLATFORM_LINKFLAGS} -Wl,-headerpad_max_install_names")
SET(PLATFORM_CXXFLAGS "${PLATFORM_CXXFLAGS} -stdlib=libc++")
ADD_PLATFORM_LINKFLAGS("-Wl,-headerpad_max_install_names")
IF(HAVE_FLAG_SEARCH_PATHS_FIRST)
ADD_PLATFORM_LINKFLAGS("-Wl,-search_paths_first")