Browse Source

Use full path to /usr/lib/libssp.a when not cross-compiling

Signed-off-by: falkTX <falktx@falktx.com>
tags/v1.0
falkTX 4 years ago
parent
commit
3e1a5374a7
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
1 changed files with 6 additions and 1 deletions
  1. +6
    -1
      setup/env.sh

+ 6
- 1
setup/env.sh View File

@@ -92,7 +92,12 @@ if [ "${MACOS}" -eq 1 ]; then
else else
LINK_FLAGS+=" -Wl,-O1 -Wl,--as-needed -Wl,--gc-sections -Wl,--no-undefined -Wl,--strip-all" LINK_FLAGS+=" -Wl,-O1 -Wl,--as-needed -Wl,--gc-sections -Wl,--no-undefined -Wl,--strip-all"
if [ "${WIN32}" -eq 1 ]; then if [ "${WIN32}" -eq 1 ]; then
LINK_FLAGS+=" -static -lssp_nonshared -Wl,-Bstatic"
LINK_FLAGS+=" -static -Wl,-Bstatic"
if [ "${CROSS_COMPILING}" -eq 0 ] && [ -e "/usr/lib/libssp.a" ]; then
LINK_FLAGS+=" /usr/lib/libssp.a"
else
LINK_FLAGS+=" -lssp_nonshared"
fi
fi fi
fi fi




Loading…
Cancel
Save