diff options
author | Robby Workman <rworkman@slackbuilds.org> | 2010-05-22 22:14:08 -0500 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2010-05-23 23:21:42 -0500 |
commit | 424569da883126ac16f8ea9ea9d176ec0c1c02f2 (patch) | |
tree | 46244778e313ca1dadcf2426ca995713ed213d92 /libraries/libunique/libunique.SlackBuild | |
parent | caf8bcddd6d6d2930a90217aacbd6047137897df (diff) |
libraries/libunique: Miscellaneous cleanups.
Diffstat (limited to 'libraries/libunique/libunique.SlackBuild')
-rw-r--r-- | libraries/libunique/libunique.SlackBuild | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/libraries/libunique/libunique.SlackBuild b/libraries/libunique/libunique.SlackBuild index 63872d15e7954..079f30fa093eb 100644 --- a/libraries/libunique/libunique.SlackBuild +++ b/libraries/libunique/libunique.SlackBuild @@ -6,10 +6,19 @@ PRGNAM=libunique VERSION=${VERSION:-1.1.6} -ARCH=${ARCH:-i486} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +# 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/SBo} PKG=$TMP/package-$PRGNAM @@ -24,6 +33,9 @@ elif [ "$ARCH" = "i686" ]; then elif [ "$ARCH" = "x86_64" ]; then SLKCFLAGS="-O2 -fPIC" LIBDIRSUFFIX="64" +else + SLKCFLAGS="-O2" + LIBDIRSUFFIX="" fi set -e |