summaryrefslogtreecommitdiffstats
path: root/development/regina-rexx
diff options
context:
space:
mode:
author Richard Narron <richard@aaazen.com>2025-02-15 08:51:03 +0700
committer Willy Sudiarto Raharjo <willysr@slackbuilds.org>2025-02-15 16:48:23 +0700
commit94d4e0f7a641e4b1d34006b5127af2f0f9609fc1 (patch)
tree56ae7412305f42fa190e71328b193cc3309b50d2 /development/regina-rexx
parente44bace85ec15cb7e79081ff77ded100dceb86e5 (diff)
downloadslackbuilds-94d4e0f7a641e4b1d34006b5127af2f0f9609fc1.tar.gz
slackbuilds-94d4e0f7a641e4b1d34006b5127af2f0f9609fc1.tar.xz
development/regina-rexx: Update script.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'development/regina-rexx')
-rw-r--r--development/regina-rexx/regina-rexx.SlackBuild10
1 files changed, 6 insertions, 4 deletions
diff --git a/development/regina-rexx/regina-rexx.SlackBuild b/development/regina-rexx/regina-rexx.SlackBuild
index 812d5e24f3..49f2a744ca 100644
--- a/development/regina-rexx/regina-rexx.SlackBuild
+++ b/development/regina-rexx/regina-rexx.SlackBuild
@@ -7,7 +7,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=regina-rexx
VERSION=${VERSION:-3.9.6}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
FLAVOR=${FLAVOR:-dynamic} # set FLAVOR=static for a rexx static binary.
@@ -61,11 +61,13 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+# remove gcc -O3 override and let the SLCKFLAGS set the optimization
+cp -p configure{,.orig}
+sed -i 's/ -O3//' configure
+
if [ "$FLAVOR" = "static" ]; then
SLKCFLAGS="$SLKCFLAGS -static"
- mv -f configure configure.orig
- sed -e 's/STATIC_LDFLAGS=""/STATIC_LDFLAGS="-static"/' <configure.orig >configure
- chmod 744 configure
+ sed -i 's/STATIC_LDFLAGS=""/STATIC_LDFLAGS="-static"/' configure
fi
CFLAGS="$SLKCFLAGS" \