aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorCameron Cawley2019-02-23 13:32:53 +0000
committerDavid Turner2019-02-24 11:29:09 +0000
commitad648f8a972cbd2ac61d594c6f0d2f6981bb84d3 (patch)
tree8291f42a8b6c3289e1b5641bdd5394c10748ecc2 /configure
parent4efa9c73d4141116892ee1cf732cdfbc259821e4 (diff)
downloadscummvm-rg350-ad648f8a972cbd2ac61d594c6f0d2f6981bb84d3.tar.gz
scummvm-rg350-ad648f8a972cbd2ac61d594c6f0d2f6981bb84d3.tar.bz2
scummvm-rg350-ad648f8a972cbd2ac61d594c6f0d2f6981bb84d3.zip
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.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure4
1 files changed, 2 insertions, 2 deletions
diff --git a/configure b/configure
index 5549298e80..f3e68b2ced 100755
--- a/configure
+++ b/configure
@@ -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