summaryrefslogtreecommitdiff
path: root/elements/gnu-toolchain/stage2-make.bst
diff options
context:
space:
mode:
Diffstat (limited to 'elements/gnu-toolchain/stage2-make.bst')
-rw-r--r--elements/gnu-toolchain/stage2-make.bst4
1 files changed, 2 insertions, 2 deletions
diff --git a/elements/gnu-toolchain/stage2-make.bst b/elements/gnu-toolchain/stage2-make.bst
index 418cc539..0cb4cdb4 100644
--- a/elements/gnu-toolchain/stage2-make.bst
+++ b/elements/gnu-toolchain/stage2-make.bst
@@ -22,11 +22,11 @@ environment:
config:
configure-commands:
- - STAGE2_SYSROOT="/" CPPFLAGS="--sysroot=$STAGE2_SYSROOT" CXX=false
+ - STAGE2_SYSROOT="$(dirname $(dirname $(pwd)))" CPPFLAGS="--sysroot=$STAGE2_SYSROOT" CXX=false
LDFLAGS="--sysroot=$STAGE2_SYSROOT" ./configure --prefix="%{prefix}" --disable-nls --without-guile
--build=$(sh config/config.guess) --host=%{target-stage1}
build-commands:
- - STAGE2_SYSROOT="/" make
+ - STAGE2_SYSROOT="$(dirname $(dirname $(pwd)))" make
strip-commands:
- |