CONFIGURE: Append pkg-config cflags to CXXFLAGS

CPPFLAGS should only contain options that are used by the preprocessor, however pkg-config may return C/C++ specific options which are unrecognised by windres.
This commit is contained in:
Cameron Cawley 2019-02-23 13:32:53 +00:00 committed by David Turner
parent 4efa9c73d4
commit ad648f8a97

4
configure vendored
View file

@ -4827,7 +4827,7 @@ if test "$_libunity" = yes ; then
LIBUNITY_CFLAGS="$LIBUNITY_CFLAGS `pkg-config --cflags 'unity > 3.8.1' 2>> "$TMPLOG"`"
fi
append_var LIBS "$LIBUNITY_LIBS"
append_var INCLUDES "$LIBUNITY_CFLAGS"
append_var CXXFLAGS "$LIBUNITY_CFLAGS"
fi
define_in_config_h_if_yes "$_libunity" 'USE_UNITY'
fi
@ -4901,7 +4901,7 @@ EOF
if test "$_freetype2" = "yes"; then
append_var LIBS "$FREETYPE2_LIBS"
append_var INCLUDES "$FREETYPE2_CFLAGS"
append_var CXXFLAGS "$FREETYPE2_CFLAGS"
fi
fi