summaryrefslogtreecommitdiffstats
path: root/source/tcl/tclx/tclx.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'source/tcl/tclx/tclx.SlackBuild')
-rwxr-xr-xsource/tcl/tclx/tclx.SlackBuild15
1 files changed, 12 insertions, 3 deletions
diff --git a/source/tcl/tclx/tclx.SlackBuild b/source/tcl/tclx/tclx.SlackBuild
index b8ca23e9c..f6d538cea 100755
--- a/source/tcl/tclx/tclx.SlackBuild
+++ b/source/tcl/tclx/tclx.SlackBuild
@@ -23,10 +23,18 @@
PKGNAM=tclx
VERSION=${VERSION:-8.4}
-ARCH=${ARCH:-x86_64}
NUMJOBS=${NUMJOBS:-" -j7 "}
-BUILD=${BUILD:-2}
-
+BUILD=${BUILD:-3}
+
+# Automatically determine the architecture we're building on:
+if [ -z "$ARCH" ]; then
+ case "$( uname -m )" in
+ i?86) export ARCH=i486 ;;
+ arm*) export ARCH=arm ;;
+ # Unless $ARCH is already set, use uname -m for all other archs:
+ *) export ARCH=$( uname -m ) ;;
+ esac
+fi
CWD=$(pwd)
TMP=${TMP:-/tmp}
@@ -69,6 +77,7 @@ CFLAGS="$SLKCFLAGS" \
--with-tcl=/usr/lib${LIBDIRSUFFIX} \
--enable-tk=YES \
--enable-shared \
+ --enable-threads \
--enable-64bit \
--build=$ARCH-slackware-linux