From a4ad76f33c2493ac5a50bac604587a47be763dae Mon Sep 17 00:00:00 2001 From: Matt Rendina Date: Fri, 17 Jan 2020 16:56:20 -0500 Subject: Update recipe to use operational toolchains (#596) Conda-supplied compilers used for linux. OS-provided compilers are used for Macos. --- hstcal/build.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'hstcal/build.sh') diff --git a/hstcal/build.sh b/hstcal/build.sh index a9727f0..743a75f 100644 --- a/hstcal/build.sh +++ b/hstcal/build.sh @@ -1,5 +1,12 @@ +# 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 gcc` + export CC=$(which $CLANG) + export GFORTRAN=$(which gfortran) if [[ `uname -m` == x86_64 ]]; then export CFLAGS="$CFLAGS -m64" export LDFLAGS="$LDFLAGS -m64" -- cgit