summaryrefslogtreecommitdiff
path: root/libraries/cfitsio/cfitsio.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/cfitsio/cfitsio.SlackBuild')
-rw-r--r--libraries/cfitsio/cfitsio.SlackBuild15
1 files changed, 12 insertions, 3 deletions
diff --git a/libraries/cfitsio/cfitsio.SlackBuild b/libraries/cfitsio/cfitsio.SlackBuild
index 44093de3fe..7cf5694b0a 100644
--- a/libraries/cfitsio/cfitsio.SlackBuild
+++ b/libraries/cfitsio/cfitsio.SlackBuild
@@ -4,11 +4,11 @@
# Written by Dominik Drobek <dominik.drobek (at) o2.pl>
PRGNAM=cfitsio
-VERSION=${VERSION:-3.27}
+VERSION=${VERSION:-3.28}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
-FVER=3270
+FVER=3280
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
@@ -37,6 +37,15 @@ else
LIBDIRSUFFIX=""
fi
+# --enable-reentrant is disabled by default, as it causes problems with legacy software
+REENTRANT=${REENTRANT:-no}
+
+if [ "$REENTRANT" = "no" ]; then
+ USE_REENTRANT="--disable-reentrant"
+else
+ USE_REENTRANT="--enable-reentrant"
+fi
+
set -e
rm -rf $PKG
@@ -60,7 +69,7 @@ CXXFLAGS="$SLKCFLAGS" \
--libdir=/usr/lib${LIBDIRSUFFIX} \
--sysconfdir=/etc \
--localstatedir=/var \
- --enable-reentrant \
+ ${USE_REENTRANT} \
--build=$ARCH-slackware-linux
# Apparently --libdir is ignored