]> git.ipfire.org Git - ipfire-2.x.git/blobdiff - make.sh
strip: use toolchain binary inside of chroot to strip
[ipfire-2.x.git] / make.sh
diff --git a/make.sh b/make.sh
index bb80f3c052420f0f4cb106adf373b1f61d139601..7e2aec257372412b1b57565e47672e2b738a1bc7 100755 (executable)
--- a/make.sh
+++ b/make.sh
@@ -627,7 +627,7 @@ lfsmake2() {
        local PS1='\u:\w$ '
 
        enterchroot \
-               bash -x -c "cd /usr/src/lfs && \
+               ${EXTRA_PATH}bash -x -c "cd /usr/src/lfs && \
                        MAKETUNING=${MAKETUNING} \
                        make -f $* \
                        LFS_BASEDIR=/usr/src install" \
@@ -1526,7 +1526,8 @@ buildinstaller() {
   export LOGFILE
   lfsmake2 memtest
   lfsmake2 installer
-  lfsmake1 strip
+  # use toolchain bash for chroot to strip
+  EXTRA_PATH=${TOOLS_DIR}/bin/ lfsmake2 strip
 }
 
 buildpackages() {