diff options
Diffstat (limited to 'source/tcl/tix')
-rwxr-xr-x | source/tcl/tix/tix.SlackBuild | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/source/tcl/tix/tix.SlackBuild b/source/tcl/tix/tix.SlackBuild index 2f83a6d65..56b62f555 100755 --- a/source/tcl/tix/tix.SlackBuild +++ b/source/tcl/tix/tix.SlackBuild @@ -24,9 +24,18 @@ PKGNAM=tix VERSION=8.4.3 -ARCH=${ARCH:-x86_64} NUMJOBS=${NUMJOBS:-" -j7 "} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} + +# 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 if [ "$ARCH" = "i486" ]; then SLKCFLAGS="-O2 -march=i486 -mtune=i686" @@ -64,6 +73,7 @@ CFLAGS="$SLKCFLAGS" \ --prefix=/usr \ --libdir=/usr/lib${LIBDIRSUFFIX} \ --enable-shared \ + --enable-threads \ --with-tcl=/usr/lib${LIBDIRSUFFIX} \ --with-tk=/usr/lib${LIBDIRSUFFIX} \ --build=$ARCH-slackware-linux |