From d755b340913d397a4e4265c41acb5acf5e57fade Mon Sep 17 00:00:00 2001 From: Brian West Date: Wed, 12 Mar 2014 15:23:44 -0500 Subject: [PATCH] clang uses -fPIC too, don't fail on mod_lua build by not adding PIC flags for the lua library build --- configure.ac | 3 +++ 1 file changed, 3 insertions(+) diff --git a/configure.ac b/configure.ac index ab4d6b49dd..8dd59c486b 100644 --- a/configure.ac +++ b/configure.ac @@ -297,6 +297,9 @@ if test "x${ax_cv_c_compiler_vendor}" = "xsun" ; then APR_ADDTO(SWITCH_AM_LDFLAGS, -m64) LIBS="$LIBS -m64" fi +elif test "x${ax_cv_c_compiler_vendor}" = "xclang" ; then + APR_ADDTO(SWITCH_AM_CFLAGS, -fPIC) + APR_ADDTO(SWITCH_AM_CXXFLAGS, -fPIC) elif test "x${ax_cv_c_compiler_vendor}" = "xgnu" ; then APR_ADDTO(SWITCH_AM_CFLAGS, -fPIC) APR_ADDTO(SWITCH_AM_CXXFLAGS, -fPIC)