summaryrefslogtreecommitdiff
path: root/system
diff options
context:
space:
mode:
authorAndrew Clemons <andrew.clemons@gmail.com>2018-02-18 14:27:57 +1300
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2018-03-03 08:42:11 +0700
commitd3e88157d8f7cdd856bc32ddca51ff97c3993ab0 (patch)
tree46f015bb8334726f7f642001814074cce5d0cd8f /system
parentd89240ad225094a1d483ec1c7225bae938368aa8 (diff)
downloadslackbuilds-d3e88157d8f7cdd856bc32ddca51ff97c3993ab0.tar.gz
system/vtcol: Fix building on -current.
Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com>
Diffstat (limited to 'system')
-rw-r--r--system/vtcol/vtcol.SlackBuild8
1 files changed, 7 insertions, 1 deletions
diff --git a/system/vtcol/vtcol.SlackBuild b/system/vtcol/vtcol.SlackBuild
index 3363476630..513c9a5c39 100644
--- a/system/vtcol/vtcol.SlackBuild
+++ b/system/vtcol/vtcol.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for vtcol
-# Copyright 2017 Andrew Clemons, Wellington New Zealand
+# Copyright 2017-2018 Andrew Clemons, Wellington New Zealand
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -33,6 +33,12 @@ if [ -z "$ARCH" ]; then
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
+
+ if [ "$ARCH" = "i586" ]; then
+ if rustc -Vv | grep host | grep i686 > /dev/null ; then
+ ARCH=i686
+ fi
+ fi
fi
CWD=$(pwd)