diff --git a/srcpkgs/bzip2/template b/srcpkgs/bzip2/template index 00114a6a4f..32a81a47ab 100644 --- a/srcpkgs/bzip2/template +++ b/srcpkgs/bzip2/template @@ -26,3 +26,12 @@ long_desc=" base_chroot=yes subpackages="bzip2-devel" Add_dependency run glibc + +pre_build() +{ + # Do not overwrite CC! + for f in Makefile Makefile-libbz2_so; do + sed -i -e "s|\(CC\)\(=gcc\)|\1?\2|g" \ + ${wrksrc}/${f} || return 1 + done +}