X-Git-Url: http://gitweb.hugovil.com/?a=blobdiff_plain;f=stage1%2Fcis-bzip2;h=5b36c8d7a42b56409e54f90006b57c3c82bcbb0c;hb=6d3d50c17b24ef41f917f5776696eca810198092;hp=a5df099812b2c918ec789228321113c66cec751c;hpb=16cc35ba4890382ee9368a176e4f5a7fa773b7a6;p=hvlinux.git diff --git a/stage1/cis-bzip2 b/stage1/cis-bzip2 index a5df099..5b36c8d 100755 --- a/stage1/cis-bzip2 +++ b/stage1/cis-bzip2 @@ -1,4 +1,5 @@ #!/bin/sh +set -o errexit # Reading system configuration informations, functions and package versions. source ../sysinfos @@ -6,12 +7,17 @@ source ../functions source ../packages-list # Applying patches (if any) -apply_patches ${1} && +apply_patches ${1} + +cd ${LFS_TMP}/${1} + +# Bzip2's default Makefile target automatically runs the testsuite as well. +# Disable the tests since they won't work on a multi-architecture build: +cp -v Makefile{,.orig} +sed -e 's@^\(all:.*\) test@\1@g' Makefile.orig > Makefile # This package doesn't have a configure script... -cd ${LFS_TMP}/${1} && -make -j ${MAKEJOBS} && -make PREFIX=/tools install +${HVMAKE} CC="${CC} ${CLFS_BUILDFLAGS}" AR="${AR}" RANLIB="${RANLIB}" +${HVMAKE} PREFIX=/tools install -# Return last error exit $?