diff options
Diffstat (limited to 'source/tcl/tclx')
-rwxr-xr-x | source/tcl/tclx/tclx.SlackBuild | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/source/tcl/tclx/tclx.SlackBuild b/source/tcl/tclx/tclx.SlackBuild index b8ca23e9..f6d538ce 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 |