SDL: added -pie to the LDFLAGS when building executable in setEnvironment-*.sh scripts

This commit is contained in:
Sergii Pylypenko
2015-07-10 21:05:11 +03:00
parent 031c0f4b13
commit b91dfc508b
8 changed files with 8 additions and 8 deletions

View File

@@ -69,7 +69,7 @@ fi
UNRESOLVED="-Wl,--no-undefined"
SHARED="-shared -Wl,-soname,$SHARED_LIBRARY_NAME"
if [ -n "$BUILD_EXECUTABLE" ]; then
SHARED="-Wl,--gc-sections -Wl,-z,nocopyreloc"
SHARED="-Wl,--gc-sections -Wl,-z,nocopyreloc -pie"
fi
if [ -n "$NO_SHARED_LIBS" ]; then
APP_SHARED_LIBS=