diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2016-06-16 09:01:32 -0400 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2016-06-16 09:13:21 -0400 |
commit | 0387d301493eaf0491e8590264a1e3f257c6e90f (patch) | |
tree | 4af4bf77952f824e059f0776a721bf11ee77bced /jwst | |
parent | 86b96001388a9917fa1a7caabd976a3a2b536e72 (diff) | |
download | astroconda-dev-0387d301493eaf0491e8590264a1e3f257c6e90f.tar.gz |
Make headerpadding more portable
Diffstat (limited to 'jwst')
-rw-r--r-- | jwst/build.sh | 12 |
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 |