aboutsummaryrefslogtreecommitdiff
path: root/development/crystal-lang
diff options
context:
space:
mode:
authorAndrew Clemons <andrew.clemons@gmail.com>2022-03-22 23:30:18 +1300
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2022-03-26 01:20:16 +0700
commited605c02b35c159f1ec2cca61798c0009d03e077 (patch)
treeed83fb1abfee16a85c03b511c3702a04f38e896d /development/crystal-lang
parentae5027093bf59edcb5de359018e8888f9894682b (diff)
development/crystal-lang: Fix ARCH detection.
Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'development/crystal-lang')
-rw-r--r--development/crystal-lang/crystal-lang.SlackBuild9
1 files changed, 3 insertions, 6 deletions
diff --git a/development/crystal-lang/crystal-lang.SlackBuild b/development/crystal-lang/crystal-lang.SlackBuild
index 9e547e05c3fd2..e2fce860744bb 100644
--- a/development/crystal-lang/crystal-lang.SlackBuild
+++ b/development/crystal-lang/crystal-lang.SlackBuild
@@ -50,18 +50,15 @@ 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=""
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
LIBDIRSUFFIX="64"
else
- SLKCFLAGS="-O2"
- LIBDIRSUFFIX=""
+ echo "$ARCH is unsupported."
+ exit 1
fi
set -e