Commit d65a00f0 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

macos: Enable C++11

Including for ObjC++ files.
This requires us to move to 10.7 as a minimal SDK.
parent 81577c16
......@@ -44,7 +44,7 @@ AC_USE_SYSTEM_EXTENSIONS
AC_DEFINE([_FORTIFY_SOURCE], 2, [Define to '2' to get glibc warnings.])
AC_PROG_CXX
AC_PROG_OBJCXX
AX_CXX_COMPILE_STDCXX_11([], [mandatory])
AX_CXX_COMPILE_STDCXX_11([noext], [mandatory])
dnl override platform specific check for dependent libraries
dnl otherwise libtool linking of shared libraries will
......@@ -90,8 +90,8 @@ case "${host_os}" in
esac
CFLAGS="${CFLAGS} -fobjc-exceptions -D_INTL_REDIRECT_MACROS ${ARCH_flag}"
CXXFLAGS="${CXXFLAGS} -D_INTL_REDIRECT_MACROS ${ARCH_flag}"
OBJCXXFLAGS="${OBJCXXFLAGS} -fobjc-exceptions -D_INTL_REDIRECT_MACROS ${ARCH_flag}"
CXXFLAGS="${CXXFLAGS} -D_INTL_REDIRECT_MACROS ${ARCH_flag} -stdlib=libc++"
OBJCXXFLAGS="${OBJCXXFLAGS} -fobjc-exceptions -D_INTL_REDIRECT_MACROS ${ARCH_flag} -stdlib=libc++ -std=c++11"
CPPFLAGS="${CPPFLAGS} ${ARCH_flag}"
LDFLAGS="${LDFLAGS} -Wl,-headerpad_max_install_names ${ARCH_flag}"
;;
......
......@@ -9,7 +9,7 @@ info()
}
ARCH="x86_64"
MINIMAL_OSX_VERSION="10.6"
MINIMAL_OSX_VERSION="10.7"
OSX_VERSION="10.9"
SDKROOT=`xcode-select -print-path`/Platforms/MacOSX.platform/Developer/SDKs/MacOSX$OSX_VERSION.sdk
VERBOSE=no
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment