From 40e1fcbf36ec1b57659f7f454d1cdd936cd402d1 Mon Sep 17 00:00:00 2001 From: Robby Workman Date: Mon, 24 May 2010 20:02:01 -0500 Subject: template.SlackBuild: don't 'export' variables unless necessary This really needs a longer explanation than I can give here, but the short version is that exporting ARCH can cause problems building kernel modules, especially on ix86 arch. --- template.SlackBuild | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/template.SlackBuild b/template.SlackBuild index 81a75e2..afa10ad 100644 --- a/template.SlackBuild +++ b/template.SlackBuild @@ -42,10 +42,10 @@ TAG=${TAG:-_SBo} # the "_SBo" is required # 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 ;; + i?86) ARCH=i486 ;; + arm*) ARCH=arm ;; # Unless $ARCH is already set, use uname -m for all other archs: - *) export ARCH=$( uname -m ) ;; + *) ARCH=$( uname -m ) ;; esac fi -- cgit v1.2.3