diff options
| author | Matt Rendina <rendinam@users.noreply.github.com> | 2017-08-11 15:32:49 -0400 | 
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-08-11 15:32:49 -0400 | 
| commit | b674603ec117c8464015a6547d30dbe6d78f7617 (patch) | |
| tree | ce78e2c5f505b65589d6ef62b21094a2b3acc867 | |
| parent | ca5a06835d2e1f83c1c15e05c444e74f78ebe72f (diff) | |
| parent | f6c4f9a7895e05b3f7d703248b163e494cea8be1 (diff) | |
| download | astroconda-dev-b674603ec117c8464015a6547d30dbe6d78f7617.tar.gz | |
Merge pull request #55 from rendinam/cfitsio_posix
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 | 
