ci: Add -fstack-protector to mingw64 cross file

See the comment in the code. As suggested by Nirbheek:
https://gitlab.gnome.org/GNOME/glib/-/merge_requests/2287#note_1285058.

Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
This commit is contained in:
Philip Withnall 2021-10-13 10:24:29 +01:00
parent 59832abb69
commit f432ebf7d5

View File

@ -4,9 +4,12 @@ cpu_family = 'x86_64'
cpu = 'x86_64' cpu = 'x86_64'
endian = 'little' endian = 'little'
# Fedora builds GCC with --enable-default-ssp by default, but mingw64 puts its
# stack-protected functions in a separate library which needs to be linked
# explicitly, hence this flag.
[properties] [properties]
c_args = [] c_args = []
c_link_args = [] c_link_args = ['-fstack-protector']
[binaries] [binaries]
c = 'x86_64-w64-mingw32-gcc' c = 'x86_64-w64-mingw32-gcc'