diff options
author | Robby Workman <rworkman@slackbuilds.org> | 2010-05-24 20:02:01 -0500 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2010-05-24 20:04:02 -0500 |
commit | 40e1fcbf36ec1b57659f7f454d1cdd936cd402d1 (patch) | |
tree | b4f3ddc3c650766685a51ced29798e86fad850fa | |
parent | cf696068049aab45134a8cbb24fd02bc38ede47c (diff) |
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.
-rw-r--r-- | template.SlackBuild | 6 |
1 files 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 |