From f8a7f3450850a756b46c65c599a020aa958e26f5 Mon Sep 17 00:00:00 2001 From: Matt Borgerson Date: Fri, 15 Nov 2019 17:24:39 -0700 Subject: [PATCH] build: Disable source fortification for Windows builds MSYS2/Mingw does not appear to provide a stable set of fortified source functions which the compiler makes calls to when the feature is enabled. Disable the feature for now. --- build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.sh b/build.sh index 87b44f7039..acc2120600 100755 --- a/build.sh +++ b/build.sh @@ -62,7 +62,7 @@ case "$(uname -s)" in # adjust compilation option based on platform CYGWIN*|MINGW*|MSYS*) echo 'Compiling for Windows…' sys_cflags='-Wno-error' - sys_opts='--python=python3 --disable-cocoa --disable-opengl' + sys_opts='--python=python3 --disable-cocoa --disable-opengl --disable-fortify-source' postbuild='package_windows' # set the above function to be called after build ;; *)