summaryrefslogtreecommitdiff
path: root/cfitsio/build.sh
diff options
context:
space:
mode:
Diffstat (limited to 'cfitsio/build.sh')
-rw-r--r--cfitsio/build.sh9
1 files changed, 7 insertions, 2 deletions
diff --git a/cfitsio/build.sh b/cfitsio/build.sh
index 6ceb369..5368e6b 100644
--- a/cfitsio/build.sh
+++ b/cfitsio/build.sh
@@ -1,3 +1,8 @@
-
+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) \ No newline at end of file
+make -j $CPU_COUNT shared
+make install