summaryrefslogtreecommitdiff
path: root/hstcal/build.sh
blob: 743a75f5de1601a51be17617a3cb20edb7e3c8d1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# 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)
    if [[ `uname -m` == x86_64 ]]; then
        export CFLAGS="$CFLAGS -m64"
        export LDFLAGS="$LDFLAGS -m64"
    fi
fi

./waf configure --prefix=$PREFIX --release-with-symbols
./waf build
./waf install