forked from Mirrors/freeswitch
add back -Werror for gcc builds
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4647 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
87e40d54d1
commit
44ef865065
|
@ -20218,6 +20218,27 @@ elif test "x${ax_cv_c_compiler_vendor}" = "xgnu" ; then
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
if test "x$SWITCH_AM_CFLAGS" = "x"; then
|
||||||
|
test "x$silent" != "xyes" && echo " setting SWITCH_AM_CFLAGS to \"-Werror\""
|
||||||
|
SWITCH_AM_CFLAGS="-Werror"
|
||||||
|
else
|
||||||
|
apr_addto_bugger="-Werror"
|
||||||
|
for i in $apr_addto_bugger; do
|
||||||
|
apr_addto_duplicate="0"
|
||||||
|
for j in $SWITCH_AM_CFLAGS; do
|
||||||
|
if test "x$i" = "x$j"; then
|
||||||
|
apr_addto_duplicate="1"
|
||||||
|
break
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
if test $apr_addto_duplicate = "0"; then
|
||||||
|
test "x$silent" != "xyes" && echo " adding \"$i\" to SWITCH_AM_CFLAGS"
|
||||||
|
SWITCH_AM_CFLAGS="$SWITCH_AM_CFLAGS $i"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# tweak platform specific flags
|
# tweak platform specific flags
|
||||||
|
|
|
@ -100,6 +100,7 @@ if test "x${ax_cv_c_compiler_vendor}" = "xsun" ; then
|
||||||
elif test "x${ax_cv_c_compiler_vendor}" = "xgnu" ; then
|
elif test "x${ax_cv_c_compiler_vendor}" = "xgnu" ; then
|
||||||
APR_ADDTO(SWITCH_AM_CFLAGS, -fPIC)
|
APR_ADDTO(SWITCH_AM_CFLAGS, -fPIC)
|
||||||
APR_ADDTO(SWITCH_AM_CXXFLAGS, -fPIC)
|
APR_ADDTO(SWITCH_AM_CXXFLAGS, -fPIC)
|
||||||
|
APR_ADDTO(SWITCH_AM_CFLAGS, -Werror)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# tweak platform specific flags
|
# tweak platform specific flags
|
||||||
|
|
Loading…
Reference in New Issue