configure.ac : Add -funsigned-char to CXXFLAGS.

Reported by Michael Tautschnig <mt@debian.org> via the Debian bug
tracker : https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=750098
This commit is contained in:
Erik de Castro Lopo 2014-06-02 19:05:08 +10:00
parent 30b156a2a7
commit 2b598d2e23

View File

@ -503,15 +503,17 @@ if test x$ac_cv_c_compiler_gnu = xyes ; then
CXXFLAGS="$CXXFLAGS -Wall"
MN_ADD_CFLAGS([-Wextra])
AC_LANG_PUSH([C++])
MN_ADD_CXXFLAGS([-Wextra])
AC_LANG_POP([C++])
MN_ADD_CFLAGS([-Wdeclaration-after-statement])
MN_ADD_CFLAGS([-Wpointer-arith])
MN_ADD_CFLAGS([-funsigned-char])
AC_LANG_PUSH([C++])
MN_ADD_CXXFLAGS([-Wextra])
MN_ADD_CXXFLAGS([-Wpointer-arith])
MN_ADD_CXXFLAGS([-funsigned-char])
AC_LANG_POP([C++])
MN_ADD_CFLAGS([-D_FORTIFY_SOURCE=2])
if test x$enable_stack_smash_protection = "xyes" ; then