Fix gcc warning when using configure --enable-permissive option
When configured with --enable-permissive option, add -fpermissive to C++ flags, not C flags, to avoid the gcc warning command-line option '-fpermissive' is valid for C++/ObjC++ but not for C when compiling C code. Closes https://github.com/wxWidgets/wxWidgets/pull/2232
This commit is contained in:
committed by
Vadim Zeitlin
parent
d2c3c6a35b
commit
ae9b55712d
2
configure
vendored
2
configure
vendored
@@ -33364,7 +33364,7 @@ if test "$GCC" = "yes" ; then
|
|||||||
WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-exceptions"
|
WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-exceptions"
|
||||||
fi
|
fi
|
||||||
if test "$wxUSE_PERMISSIVE" = "yes" ; then
|
if test "$wxUSE_PERMISSIVE" = "yes" ; then
|
||||||
WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -fpermissive"
|
WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fpermissive"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
case "${host}" in
|
case "${host}" in
|
||||||
|
@@ -5462,7 +5462,7 @@ if test "$GCC" = "yes" ; then
|
|||||||
WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-exceptions"
|
WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-exceptions"
|
||||||
fi
|
fi
|
||||||
if test "$wxUSE_PERMISSIVE" = "yes" ; then
|
if test "$wxUSE_PERMISSIVE" = "yes" ; then
|
||||||
WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -fpermissive"
|
WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fpermissive"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
dnl Ian Brown <ian.brown@printsoft.de> reports that versions of gcc before
|
dnl Ian Brown <ian.brown@printsoft.de> reports that versions of gcc before
|
||||||
|
Reference in New Issue
Block a user