summaryrefslogtreecommitdiff
path: root/hstcal/build.sh
diff options
context:
space:
mode:
authorMatt Rendina <rendinam@users.noreply.github.com>2020-01-22 11:46:51 -0500
committerGitHub <noreply@github.com>2020-01-22 11:46:51 -0500
commit76fad0a9b42d4978b40d96fc791ce26bb1c165f8 (patch)
tree0292d82c27caabc3b339713e8d3197b5c895e1cd /hstcal/build.sh
parenta4ad76f33c2493ac5a50bac604587a47be763dae (diff)
downloadastroconda-contrib-76fad0a9b42d4978b40d96fc791ce26bb1c165f8.tar.gz
Adjust to correctly find compiler on macos (#597)
Diffstat (limited to 'hstcal/build.sh')
-rw-r--r--hstcal/build.sh10
1 files changed, 5 insertions, 5 deletions
diff --git a/hstcal/build.sh b/hstcal/build.sh
index 743a75f..37e7be2 100644
--- a/hstcal/build.sh
+++ b/hstcal/build.sh
@@ -1,16 +1,16 @@
-# Use the compilers provided by conda. The activation of the build
-# environment defines the GCC and GFORTRAN env vars.
-export CC=$CC
export FCFLAGS="$FCFLAGS -fPIC"
if [[ `uname` == Darwin ]]; then
- export CC=$(which $CLANG)
- export GFORTRAN=$(which gfortran)
+ #export GFORTRAN=$(which gfortran)
if [[ `uname -m` == x86_64 ]]; then
export CFLAGS="$CFLAGS -m64"
export LDFLAGS="$LDFLAGS -m64"
fi
+else
+ # Use the compilers provided by conda. The activation of the build
+ # environment defines the GCC and GFORTRAN env vars.
+ export CC=$CC
fi
./waf configure --prefix=$PREFIX --release-with-symbols