Add cross-compile ipkg mode for stage1 (DESTDIR)
[hvlinux.git] / stage1 / pkg / bzip2
index 56bd28c..9805b2e 100644 (file)
@@ -2,12 +2,10 @@
 
 hvbuild()
 {
-    cd ${LFS_TMP}/${PACKAGE}
-
     # Bzip2's default Makefile target automatically runs the testsuite as well.
     # Disable the tests since they won't work on a multi-architecture build:
     sed -e 's@^\(all:.*\) test@\1@g' -i Makefile
 
     ${HVMAKE} CC="${CC} ${CLFS_BUILDFLAGS}" AR="${AR}" RANLIB="${RANLIB}"
-    ${HVMAKE} PREFIX=/tools install
+    ${HVMAKE} PREFIX=${LFS}/tools install
 }