Permalink
Browse files

FL-254: We had to unset ARCH. Back up to REAL_ARCH so we can test aga…

…inst it later.
  • Loading branch information...
danielrobbins committed Dec 5, 2012
1 parent 7a1b08d commit f7ac5e76db70120dd62201dc2c65f8760559e5f1
@@ -55,6 +55,7 @@ get_patch_list() {
}
pkg_setup() {
+ export REAL_ARCH="$ARCH"
unset ARCH; unset LDFLAGS #will interfere with Makefile if set
}
@@ -84,7 +85,7 @@ src_prepare() {
local opts
use rt && opts="rt" || opts="standard"
local myarch="amd64"
- [ "$ARCH" = "x86" ] && myarch="i386" && opts="$opts 686-pae"
+ [ "$REAL_ARCH" = "x86" ] && myarch="i386" && opts="$opts 686-pae"
cp ${FILESDIR}/config-extract . || die
chmod +x config-extract || die
./config-extract ${myarch} ${opts} || die
@@ -55,6 +55,7 @@ get_patch_list() {
}
pkg_setup() {
+ export REAL_ARCH="$ARCH"
unset ARCH; unset LDFLAGS #will interfere with Makefile if set
}
@@ -84,7 +85,7 @@ src_prepare() {
local opts
use rt && opts="rt" || opts="standard"
local myarch="amd64"
- [ "$ARCH" = "x86" ] && myarch="i386" && opts="$opts 686-pae"
+ [ "$REAL_ARCH" = "x86" ] && myarch="i386" && opts="$opts 686-pae"
cp ${FILESDIR}/config-extract . || die
chmod +x config-extract || die
./config-extract ${myarch} ${opts} || die

0 comments on commit f7ac5e7

Please sign in to comment.