summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@users.noreply.github.com>2016-06-16 09:14:57 -0400
committerGitHub <noreply@github.com>2016-06-16 09:14:57 -0400
commit05f6d809353e181c41b3fc2ecbc40d7f2c011796 (patch)
tree4af4bf77952f824e059f0776a721bf11ee77bced
parent86b96001388a9917fa1a7caabd976a3a2b536e72 (diff)
parent0387d301493eaf0491e8590264a1e3f257c6e90f (diff)
downloadastroconda-dev-05f6d809353e181c41b3fc2ecbc40d7f2c011796.tar.gz
Merge pull request #1 from jhunkeler/fix-headerpad
Make headerpadding more portable
-rw-r--r--jwst/build.sh12
1 files changed, 11 insertions, 1 deletions
diff --git a/jwst/build.sh b/jwst/build.sh
index a20772b..d7b5829 100644
--- a/jwst/build.sh
+++ b/jwst/build.sh
@@ -1,2 +1,12 @@
-LDFLAGS="-headerpad_max_install_names"
+case `uname` in
+ Darwin)
+ export LDFLAGS="${LDFLAGS} -headerpad_max_install_names"
+ ;;
+ Linux)
+ export CFLAGS="${CFLAGS} -Wl,-headerpad_max_install_names"
+ ;;
+ *)
+ ;;
+esac
+
$PYTHON setup.py install