Skip to content
This repository was archived by the owner on Aug 30, 2024. It is now read-only.

Fix stripping binaries from debugging symbols #87

Merged
merged 1 commit into from
May 6, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion env_vars.sh
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
12 changes: 11 additions & 1 deletion env_vars_32.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/usr/bin/env bash
# Environment variables for 32-bit build.
# The important difference from the 64-bit build is `-msse2` to
# compile sse loops for ufuncs.
Expand All @@ -7,4 +8,13 @@ MACOSX_DEPLOYMENT_TARGET=10.9
# Causes failure for pre-1.19 in np.reciprocal
# CFLAGS="-msse2 -std=c99 -fno-strict-aliasing"
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