summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaiki Ueno <ueno@gnu.org>2020-11-04 09:46:10 +0100
committerDaiki Ueno <ueno@gnu.org>2020-11-04 14:19:05 +0100
commit9260ad2dcfb1a9cbb1d2b7e6783424cb5eec8588 (patch)
tree23c9707c4cc84e3a13d5e483e2d019fcca36111a
parent9d8d24bea548dd8f354eb896689506f4796cfee5 (diff)
downloadgnutls-9260ad2dcfb1a9cbb1d2b7e6783424cb5eec8588.tar.gz
.gitlab-ci.yml: supply -fstack-protector required by latest MinGW
https://sourceforge.net/p/mingw-w64/bugs/818/ Signed-off-by: Daiki Ueno <ueno@gnu.org>
-rw-r--r--.gitlab-ci.yml20
1 files changed, 19 insertions, 1 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 315ba05ca7..2132d67975 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -7,7 +7,7 @@ stages:
# name to allow expiration of old caches.
cache:
- key: "$CI_JOB_NAME-ver17"
+ key: "$CI_JOB_NAME-ver18"
paths:
- cache/
@@ -319,6 +319,9 @@ MinGW32.DLLs:
- echo ':DOSWin:M::MZ::/usr/bin/wine:' > /proc/sys/fs/binfmt_misc/register
- ./bootstrap
- export CC="ccache i686-w64-mingw32-gcc"
+ - export CFLAGS="-fstack-protector"
+ - export CXXFLAGS="-fstack-protector"
+ - export LDFLAGS="-fstack-protector"
- export WINEPATH=/usr/i686-w64-mingw32/sys-root/mingw/bin
- dash ./configure --disable-gcc-warnings --host=i686-w64-mingw32 --target=i686-w64-mingw32 --cache-file cache/config.cache --with-included-libtasn1 --disable-nls --disable-guile --with-included-unistring --enable-local-libopts --disable-non-suiteb-curves --disable-full-test-suite --disable-doc
- mingw32-make -j$BUILDJOBS
@@ -360,6 +363,9 @@ MinGW64.DLLs:
- echo ':DOSWin:M::MZ::/usr/bin/wine:' > /proc/sys/fs/binfmt_misc/register
- ./bootstrap
- export CC="ccache x86_64-w64-mingw32-gcc"
+ - export CFLAGS="-fstack-protector"
+ - export CXXFLAGS="-fstack-protector"
+ - export LDFLAGS="-fstack-protector"
- export WINEPATH=/usr/x86_64-w64-mingw32/sys-root/mingw/bin
- dash ./configure --disable-gcc-warnings --host=x86_64-w64-mingw32 --target=x86_64-w64-mingw32 --cache-file cache/config.cache --with-included-libtasn1 --disable-guile --disable-nls --with-included-unistring --enable-local-libopts --disable-non-suiteb-curves --disable-full-test-suite --disable-doc
- mingw64-make -j$BUILDJOBS
@@ -401,6 +407,9 @@ MinGW64.DLLs.Vista+:
- echo ':DOSWin:M::MZ::/usr/bin/wine:' > /proc/sys/fs/binfmt_misc/register
- ./bootstrap
- export CC="ccache x86_64-w64-mingw32-gcc"
+ - export CFLAGS="-fstack-protector"
+ - export CXXFLAGS="-fstack-protector"
+ - export LDFLAGS="-fstack-protector"
# Target Vista instead of XP, currently the default in mingw
- export CPPFLAGS="-D_WIN32_WINNT=0x600"
- export WINEPATH=/usr/x86_64-w64-mingw32/sys-root/mingw/bin
@@ -442,6 +451,9 @@ MinGW64.Vista+:
script:
- ./bootstrap
- export CC="ccache x86_64-w64-mingw32-gcc"
+ - export CFLAGS="-fstack-protector"
+ - export CXXFLAGS="-fstack-protector"
+ - export LDFLAGS="-fstack-protector"
# Target Vista instead of XP, currently the default in mingw
- export CPPFLAGS="-D_WIN32_WINNT=0x600"
- export WINEPATH=/usr/x86_64-w64-mingw32/sys-root/mingw/bin
@@ -478,6 +490,9 @@ MinGW64:
script:
- ./bootstrap
- export CC="ccache x86_64-w64-mingw32-gcc"
+ - export CFLAGS="-fstack-protector"
+ - export CXXFLAGS="-fstack-protector"
+ - export LDFLAGS="-fstack-protector"
- export WINEPATH=/usr/x86_64-w64-mingw32/sys-root/mingw/bin
- mount -t binfmt_misc binfmt_misc /proc/sys/fs/binfmt_misc
- echo ':DOSWin:M::MZ::/usr/bin/wine64:' > /proc/sys/fs/binfmt_misc/register
@@ -512,6 +527,9 @@ MinGW32:
script:
- ./bootstrap
- export CC="ccache i686-w64-mingw32-gcc"
+ - export CFLAGS="-fstack-protector"
+ - export CXXFLAGS="-fstack-protector"
+ - export LDFLAGS="-fstack-protector"
- export WINEPATH=/usr/i686-w64-mingw32/sys-root/mingw/bin
- mount -t binfmt_misc binfmt_misc /proc/sys/fs/binfmt_misc
- echo ':DOSWin:M::MZ::/usr/bin/wine:' > /proc/sys/fs/binfmt_misc/register