summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichel Zou2019-12-02 19:28:32 +0100
committerMichel Zou2019-12-02 19:28:32 +0100
commit2165681bffaeaf6ab275462b7bd8cb7841dcffae (patch)
tree45a013f373aa340303db8667c8a81c37e8945a11
parenteb9c304ca784c0d346c9fe4a49163e2841f788d2 (diff)
downloadaur-2165681bffaeaf6ab275462b7bd8cb7841dcffae.tar.gz
drop CPPFLAGS
-rw-r--r--mingw-cmake.sh4
1 files changed, 1 insertions, 3 deletions
diff --git a/mingw-cmake.sh b/mingw-cmake.sh
index 46d3fe234ef..6fdbc5c0977 100644
--- a/mingw-cmake.sh
+++ b/mingw-cmake.sh
@@ -3,11 +3,9 @@ mingw_prefix=/usr/@TRIPLE@
export PKG_CONFIG_LIBDIR="${mingw_prefix}/lib/pkgconfig"
-default_mingw_pp_flags="-D_FORTIFY_SOURCE=2"
-default_mingw_compiler_flags="$default_mingw_pp_flags -O2 -pipe -fno-plt -fexceptions --param=ssp-buffer-size=4"
+default_mingw_compiler_flags="-D_FORTIFY_SOURCE=2 -O2 -pipe -fno-plt -fexceptions --param=ssp-buffer-size=4"
default_mingw_linker_flags="-Wl,-O1,--sort-common,--as-needed -fstack-protector"
-export CPPFLAGS="${MINGW_CPPFLAGS:-$default_mingw_pp_flags $CPPFLAGS}"
export CFLAGS="${MINGW_CFLAGS:-$default_mingw_compiler_flags $CFLAGS}"
export CXXFLAGS="${MINGW_CXXFLAGS:-$default_mingw_compiler_flags $CXXFLAGS}"
export LDFLAGS="${MINGW_LDFLAGS:-$default_mingw_linker_flags $LDFLAGS}"