diff options
author | Markus Reichelt <slackbuilds@mareichelt.de> | 2020-05-09 13:21:13 +0100 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2020-05-10 08:37:01 +0700 |
commit | b94b29ab1bdf8925f05670137d3c2269b82e6c2b (patch) | |
tree | 025e3a8a51be7987c1a70f915f0d1b8691a2ebe8 /system/mksh/mksh.SlackBuild | |
parent | 8f707998e6866d7d83eeb8a2e3285adeed7e6dc7 (diff) |
system/mksh: Updated for version R59.
Signed-off-by: Dave Woodfall <dave@slackbuilds.org>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/mksh/mksh.SlackBuild')
-rw-r--r-- | system/mksh/mksh.SlackBuild | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/system/mksh/mksh.SlackBuild b/system/mksh/mksh.SlackBuild index f519ed2e8677c..a1f011e469a15 100644 --- a/system/mksh/mksh.SlackBuild +++ b/system/mksh/mksh.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for mksh -# Copyright (c) 2011-2019 Markus Reichelt, Aachen, DE +# Copyright (c) 2011-2020 Markus Reichelt, Aachen, DE # All rights reserved. # # Permission to use, copy, modify, and distribute this software for @@ -26,7 +26,7 @@ # Markus Reichelt, slackbuilds@mareichelt.de, 0xCCEEF115 PRGNAM=mksh -VERSION=${VERSION:-R57} +VERSION=${VERSION:-R59} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -66,6 +66,9 @@ rm -rf $PRGNAM tar xf $CWD/$PRGNAM-$VERSION.tgz cd $PRGNAM +CC="gcc" +SLKCFLAGS="${SLKCFLAGS} -Wall" + if [ "$STATIC" = "yes" ]; then LDFLAGS="${LDFLAGS} -static" CPPFLAGS="${CPPFLAGS} -DMKSH_NOPWNAM" @@ -73,9 +76,10 @@ fi if [ "$DIET" = "yes" ]; then CC="diet -Os gcc" - SLKCFLAGS="${SLKCFLAGS} -Wall" -else - CC="gcc" +fi + +if [ "$MUSL" = "yes" ]; then + CC="musl-gcc" fi chown -R root:root . @@ -92,7 +96,8 @@ LDFLAGS=$LDFLAGS \ CPPFLAGS=$CPPFLAGS \ CFLAGS=$SLKCFLAGS \ CC=$CC \ - sh ../Build.sh -r -c lto + sh ../Build.sh -r +./test.sh mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION $PKG/usr/man/man1 $PKG/install |