Skip to content

Commit f09c967

Browse files
committed
Build stripped extension module for Linux conda.
Save some space for the conda package.
1 parent 46f09bb commit f09c967

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

conda-recipe/build.sh

+6
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ if [[ "$(uname)" == Darwin && "$PY_VER" == 2.6 ]]; then
55
LDFLAGS="${LDFLAGS} -lstdc++"
66
fi
77

8+
# Produce stripped binaries on Linux.
9+
if [[ "$(uname)" == Linux ]]; then
10+
# conda-build does not set LDFLAGS on Linux.
11+
export LDFLAGS="-s"
12+
fi
13+
814
$PYTHON setup.py install
915

1016
# Add more build steps here, if they are necessary.

0 commit comments

Comments
 (0)