diff options
author | David Somero <xgizzmo@slackbuilds.org> | 2010-06-04 01:13:17 -0400 |
---|---|---|
committer | David Somero <xgizzmo@slackbuilds.org> | 2010-06-04 01:13:17 -0400 |
commit | 4b21bebdf8884627417b9f89376f2174f96cfa9f (patch) | |
tree | 81d2c489ba37b6af977423b7c55bcdc1d8feb370 /network/mod_chroot/mod_chroot.SlackBuild | |
parent | 3c2bcfb95a7d71fd674991844fc3966c844c8301 (diff) | |
download | slackbuilds-4b21bebdf8884627417b9f89376f2174f96cfa9f.tar.gz |
network/mod_chroot: Misc automated cleanups.
Signed-off-by: David Somero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'network/mod_chroot/mod_chroot.SlackBuild')
-rw-r--r-- | network/mod_chroot/mod_chroot.SlackBuild | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/network/mod_chroot/mod_chroot.SlackBuild b/network/mod_chroot/mod_chroot.SlackBuild index 3808faf7fb..86c7489691 100644 --- a/network/mod_chroot/mod_chroot.SlackBuild +++ b/network/mod_chroot/mod_chroot.SlackBuild @@ -9,10 +9,19 @@ PRGNAM=mod_chroot VERSION=${VERSION:-0.5} -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) ARCH=i486 ;; + arm*) ARCH=arm ;; + # Unless $ARCH is already set, use uname -m for all other archs: + *) ARCH=$( uname -m ) ;; + esac +fi + CWD=$(pwd) TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM @@ -27,6 +36,9 @@ elif [ "$ARCH" = "i686" ]; then elif [ "$ARCH" = "x86_64" ]; then SLKCFLAGS="-O2 -fPIC" LIBDIRSUFFIX="64" +else + SLKCFLAGS="-O2" + LIBDIRSUFFIX="" fi set -e # Exit on most errors |