diff --git a/Project/GNU/Library/configure.ac b/Project/GNU/Library/configure.ac index 6c4b4ff..15e74d2 100644 --- a/Project/GNU/Library/configure.ac +++ b/Project/GNU/Library/configure.ac @@ -15,7 +15,7 @@ AC_CONFIG_SRCDIR([../../../Source/ZenLib/Ztring.cpp]) dnl ------------------------------------------------------------------------- dnl sets build, host, target variables and the same with _alias dnl -AC_CANONICAL_BUILD +AC_CANONICAL_HOST AM_INIT_AUTOMAKE([foreign -Wall]) dnl ------------------------------------------------------------------------- @@ -24,11 +24,22 @@ dnl AC_PROG_CC AC_PROG_CXX AC_PROG_CPP -AC_DISABLE_STATIC -AC_LIBTOOL_WIN32_DLL -AC_PROG_LIBTOOL AC_PROG_INSTALL +dnl ------------------------------------------------------------------------- +dnl Libtool init +dnl +case "$host_os" in + darwin*) + dnl libtool wrongly detects -single_module as unsupported with recent Xcode/Clang versions. + dnl This causes the master object to be linked using a buggy code path that does not honor + dnl $compiler_flags, and flags such as -arch or -mmacos-version-min to be silently dropped. + lt_cv_apple_cc_single_mod=yes + ;; +esac + +LT_INIT([disable-static win32-dll]) + dnl ######################################################################### dnl ### Options dnl ######################################################################### @@ -278,8 +289,9 @@ AC_SUBST(ZenLib_wstring_missing) AC_SUBST(ZenLib_LargeFiles) AC_CONFIG_FILES(libzen-config, [chmod u+x libzen-config]) AC_CONFIG_FILES(libzen.pc) +AC_CONFIG_FILES([Makefile]) -AC_OUTPUT(Makefile) +AC_OUTPUT dnl ######################################################################### dnl ### Report how we have been configured @@ -297,4 +309,5 @@ echo " Create static lib? $enable_static" echo " Create shared lib? $enable_shared" echo "" echo " CXXFLAGS: $CXXFLAGS" +echo " LDFLAGS: $LDFLAGS" echo " LIBS: $LIBS"