summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichel Zou2017-08-11 19:26:04 +0200
committerMichel Zou2017-08-11 19:26:04 +0200
commit3174bb8705e8f614c2d6c02d3a21a15f7c26bf4f (patch)
treebe4444c06ec241eb48e37378327d4f4fd88d08f4
parenta4b78b7d1062910adf962386d7825dcac06eb053 (diff)
downloadaur-3174bb8705e8.tar.gz
Override release flags
-rw-r--r--.SRCINFO2
-rw-r--r--mingw-cmake.sh4
2 files changed, 3 insertions, 3 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 79026e71f67..8d98871b206 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,5 +1,5 @@
# Generated by mksrcinfo v8
-# Tue Jun 13 20:16:12 UTC 2017
+# Fri Aug 11 17:26:04 UTC 2017
pkgbase = mingw-w64-cmake
pkgdesc = CMake wrapper for MinGW (mingw-w64)
pkgver = 1
diff --git a/mingw-cmake.sh b/mingw-cmake.sh
index 5384650bbb8..48964dda8e8 100644
--- a/mingw-cmake.sh
+++ b/mingw-cmake.sh
@@ -4,8 +4,6 @@ mingw_prefix=/usr/@TRIPLE@
export PKG_CONFIG_LIBDIR="${mingw_prefix}/lib/pkgconfig"
mingw_c_flags="-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4"
-export CFLAGS="$mingw_c_flags $CFLAGS"
-export CXXFLAGS="$mingw_c_flags $CXXFLAGS"
PATH=${mingw_prefix}/bin:$PATH cmake \
-DCMAKE_INSTALL_PREFIX:PATH=${mingw_prefix} \
@@ -20,4 +18,6 @@ PATH=${mingw_prefix}/bin:$PATH cmake \
-DCMAKE_TOOLCHAIN_FILE=/usr/share/mingw/toolchain-@TRIPLE@.cmake \
-DCMAKE_CROSSCOMPILING_EMULATOR=/usr/bin/@TRIPLE@-wine \
-DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_C_FLAGS_RELEASE="$mingw_c_flags $CFLAGS" \
+ -DCMAKE_CXX_FLAGS_RELEASE="$mingw_c_flags $CXXFLAGS" \
"$@"