From 4afc391e398b1a53aa7d3865761e0aec9ac0d618 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Thu, 20 May 2010 22:40:04 +0200 Subject: [PATCH] bzip2: do not overwrite CC in Makefiles so that BUILD_32BIT works. --- srcpkgs/bzip2/template | 9 +++++++++ 1 file changed, 9 insertions(+) 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 +}