summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2016-06-16 09:01:32 -0400
committerJoseph Hunkeler <jhunkeler@gmail.com>2016-06-16 09:13:21 -0400
commit0387d301493eaf0491e8590264a1e3f257c6e90f (patch)
tree4af4bf77952f824e059f0776a721bf11ee77bced
parent86b96001388a9917fa1a7caabd976a3a2b536e72 (diff)
downloadastroconda-dev-0387d301493eaf0491e8590264a1e3f257c6e90f.tar.gz
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