From eb4bd9fd727c97aeb7beab3200f1afc6b5c0aa0f Mon Sep 17 00:00:00 2001 From: tihmstar Date: Sat, 31 Dec 2016 16:19:05 +0100 Subject: [PATCH] adding flags for clang compiler --- configure.ac | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/configure.ac b/configure.ac index 86844d22..1c72bba8 100644 --- a/configure.ac +++ b/configure.ac @@ -2,6 +2,16 @@ AC_PREREQ(2.64) AC_INIT([futurerestore], [1.0], [http://url.me/issues],, [http://url.me]) AC_CANONICAL_SYSTEM + +AC_CANONICAL_HOST +# Check for operating system +AC_MSG_CHECKING([whether we need platform-specific build settings]) +case $host_os in + darwin* ) + CXXFLAGS+=" -stdlib=libc++" + ;; +esac + AM_INIT_AUTOMAKE CFLAGS="-DIDEVICERESTORE_NOMAIN=1 -DIMG4TOOL_NOMAIN=1 -DTSSCHECKER_NOMAIN=1"