This repository has been archived by the owner on Aug 30, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #87 from seiko2plus/fix_strip
Fix stripping binaries from debugging symbols
- Loading branch information
Showing
2 changed files
with
22 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,15 @@ | ||
#!/usr/bin/env bash | ||
# Environment variables for build | ||
OPENBLAS_VERSION="v0.3.7" | ||
MACOSX_DEPLOYMENT_TARGET=10.9 | ||
CFLAGS="-std=c99 -fno-strict-aliasing" | ||
LDFLAGS="-Wl,--strip-debug" | ||
# Macos's linker doesn't support stripping symbols | ||
if [ "$(uname)" != "Darwin" ]; then | ||
LDFLAGS="-Wl,--strip-debug" | ||
# make sure that LDFLAGS is exposed to child processes, | ||
# since current version of manybuild only export CFLAGS, CPPFLAGS and FFLAGS | ||
export LDFLAGS="$LDFLAGS" | ||
# override the default stripping flags, since we only override CFLAGS and | ||
# the current version of manybuild pass "-strip-all" to CPPFLAGS and FFLAGS | ||
STRIP_FLAGS="" | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters