X-Git-Url: http://gitweb.hugovil.com/?a=blobdiff_plain;ds=sidebyside;f=stage1%2Fcis-bzip2;h=ab48063e945beb3d817a1c3dc3b7074867cac5f8;hb=d285862d69e7fd12b359fbdb594a9d78607ece1f;hp=a5df099812b2c918ec789228321113c66cec751c;hpb=16cc35ba4890382ee9368a176e4f5a7fa773b7a6;p=hvlinux.git diff --git a/stage1/cis-bzip2 b/stage1/cis-bzip2 index a5df099..ab48063 100755 --- a/stage1/cis-bzip2 +++ b/stage1/cis-bzip2 @@ -1,4 +1,5 @@ -#!/bin/sh +#!/bin/bash +set -o errexit # Reading system configuration informations, functions and package versions. source ../sysinfos @@ -6,12 +7,16 @@ 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: +sed -e 's@^\(all:.*\) test@\1@g' -i 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 $?