diff options
author | Matt Rendina <mrendina@stsci.edu> | 2017-08-11 15:31:26 -0400 |
---|---|---|
committer | Matt Rendina <mrendina@stsci.edu> | 2017-08-11 15:31:26 -0400 |
commit | f6c4f9a7895e05b3f7d703248b163e494cea8be1 (patch) | |
tree | ce78e2c5f505b65589d6ef62b21094a2b3acc867 | |
parent | ca5a06835d2e1f83c1c15e05c444e74f78ebe72f (diff) | |
download | astroconda-dev-f6c4f9a7895e05b3f7d703248b163e494cea8be1.tar.gz |
Add platform-selective CFLAGS var for POSIX compliance on MacOS
-rw-r--r-- | cfitsio/build.sh | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/cfitsio/build.sh b/cfitsio/build.sh index 0a523d1..4902a84 100644 --- a/cfitsio/build.sh +++ b/cfitsio/build.sh @@ -1,3 +1,7 @@ - +case "$(uname)" in + Darwin) + export CFLAGS="$CFLAGS -D_POSIX_C_SOURCE=200112L" + ;; +esac ./configure --prefix=$PREFIX --disable-static --enable-reentrant -(make -j $CPU_COUNT shared && make install) || exit 1
\ No newline at end of file +(make -j $CPU_COUNT shared && make install) || exit 1 |