clang uses -fPIC too, don't fail on mod_lua build by not adding PIC flags for the lua library build

This commit is contained in:
Brian West 2014-03-12 15:23:44 -05:00
parent 4b935e1037
commit d755b34091
1 changed files with 3 additions and 0 deletions

View File

@ -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)