Browse Source

Workaround mingw oddity

Signed-off-by: falkTX <falktx@falktx.com>
master
falkTX 5 months ago
parent
commit
93ea5f8e9b
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      setup/env.sh

+ 3
- 2
setup/env.sh View File

@@ -120,14 +120,15 @@ if [ "${MACOS}" -eq 1 ]; then
LINK_FLAGS+=" -Wl,-dead_strip -Wl,-dead_strip_dylibs -Wl,-x"
else
LINK_FLAGS+=" -Wl,-O1 -Wl,--as-needed -Wl,--gc-sections -Wl,--no-undefined -Wl,--strip-all"
LINK_FLAGS+=" -static-libgcc -static-libstdc++"
if [ "${WIN32}" -eq 1 ]; then
LINK_FLAGS+=" -static -Wl,-Bstatic"
LINK_FLAGS+=" -static -static-libgcc -static-libstdc++ -Wl,-Bstatic"
if [ "${CROSS_COMPILING}" -eq 0 ] && [ -e "/usr/lib/libssp.a" ]; then
LINK_FLAGS+=" -lssp"
else
LINK_FLAGS+=" -lssp_nonshared"
fi
else
LINK_FLAGS+=" -static-libgcc -static-libstdc++"
fi
fi



Loading…
Cancel
Save