From ae5027093bf59edcb5de359018e8888f9894682b Mon Sep 17 00:00:00 2001 From: Andrew Clemons Date: Tue, 22 Mar 2022 23:26:15 +1300 Subject: development/cf-cli: Fix ARCH detection. Signed-off-by: Andrew Clemons Signed-off-by: Willy Sudiarto Raharjo --- development/cf-cli/cf-cli.SlackBuild | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'development') diff --git a/development/cf-cli/cf-cli.SlackBuild b/development/cf-cli/cf-cli.SlackBuild index d63402f51f39c..f46a18052f32a 100644 --- a/development/cf-cli/cf-cli.SlackBuild +++ b/development/cf-cli/cf-cli.SlackBuild @@ -50,10 +50,7 @@ TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} -if [ "$ARCH" = "i486" ]; then - SLKCFLAGS="-O2 -march=i486 -mtune=i686" - LIBDIRSUFFIX="" -elif [ "$ARCH" = "i686" ]; then +if [ "$ARCH" = "i686" ]; then SLKCFLAGS="-O2 -march=i686 -mtune=i686" LIBDIRSUFFIX="" mv $CWD/${BIN}7-cli\_$VERSION\_linux\_$ARCH.tgz $CWD/$PRGNAM\_$VERSION\_linux\_$ARCH.tgz @@ -62,8 +59,8 @@ elif [ "$ARCH" = "x86_64" ]; then LIBDIRSUFFIX="64" mv $CWD/${BIN}7-cli\_$VERSION\_linux\_x86-64.tgz $CWD/$PRGNAM\_$VERSION\_linux\_$ARCH.tgz else - SLKCFLAGS="-O2" - LIBDIRSUFFIX="" + echo "$ARCH is unsupported." + exit 1 fi set -e -- cgit v1.2.3