diff --git a/build.sh b/build.sh index 81fca2fb59..ab4ef3bc32 100755 --- a/build.sh +++ b/build.sh @@ -239,7 +239,7 @@ case "$platform" in # Adjust compilation options based on platform echo 'Compiling for Windows...' sys_cflags='-Wno-error' CFLAGS="${CFLAGS} -lIphlpapi -lCrypt32" # workaround for linking libs on mingw - opts="$opts --disable-fortify-source" + opts="$opts" postbuild='package_windows' # set the above function to be called after build target="qemu-system-i386w.exe" ;; @@ -247,7 +247,7 @@ case "$platform" in # Adjust compilation options based on platform echo 'Cross-compiling for Windows...' export AR=${AR:-$CROSSAR} sys_cflags='-Wno-error' - opts="$opts --cross-prefix=$CROSSPREFIX --static --disable-fortify-source" + opts="$opts --cross-prefix=$CROSSPREFIX --static" postbuild='package_wincross' # set the above function to be called after build target="qemu-system-i386w.exe" ;;