summaryrefslogtreecommitdiff
path: root/jwst
diff options
context:
space:
mode:
Diffstat (limited to 'jwst')
-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