From: Michael Jerris Date: Tue, 15 Oct 2013 16:34:15 +0000 (-0700) Subject: FS-5819: configure fix for new clang detection and adjust cflags for building with... X-Git-Tag: v1.4.1~11^2~35 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f236ca113d8ed216cabda3b4356dc29d5beb3b2a;p=thirdparty%2Ffreeswitch.git FS-5819: configure fix for new clang detection and adjust cflags for building with newest clang --- diff --git a/libs/openzap/configure.ac b/libs/openzap/configure.ac index d2c23c1091..9b41d26953 100644 --- a/libs/openzap/configure.ac +++ b/libs/openzap/configure.ac @@ -80,6 +80,15 @@ esac #set SOLINK variable based on compiler and host if test "x${ax_cv_c_compiler_vendor}" = "xsun" ; then SOLINK="-Bdynamic -dy -G" +elif test "x${ax_cv_c_compiler_vendor}" = "xclang" ; then + case "$host" in + *darwin*) + SOLINK="-dynamic -bundle -force-flat-namespace" + ;; + *) + AC_ERROR([Please update configure.in with SOLINK values for your compiler]) + ;; + esac elif test "x${ax_cv_c_compiler_vendor}" = "xgnu" ; then case "$host" in *darwin*)