diff options
-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 |