From: Michael Tremer Date: Thu, 26 Mar 2009 10:03:15 +0000 (+0100) Subject: Fixed compiling with -fpic for bzip2. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8b65884cec5c0f92bae7d48150c5adc045b96525;p=ipfire-3.x.git Fixed compiling with -fpic for bzip2. --- diff --git a/lfs/bzip2 b/lfs/bzip2 index 827985e5e..c6257e8ed 100644 --- a/lfs/bzip2 +++ b/lfs/bzip2 @@ -84,9 +84,10 @@ endif ifeq "$(STAGE)" "base" cd $(DIR_APP) && patch -Np1 -i $(DIR_PATCHES)/$(THISAPP)-install_docs-1.patch - cd $(DIR_APP) && make -f Makefile-libbz2_so + cd $(DIR_APP) && sed -e "s/$$(CC) -shared/& $(CFLAGS)/" -i Makefile-libbz2_so + cd $(DIR_APP) && make CFLAGS="$(CFLAGS) -D_FILE_OFFSET_BITS=64 -fpic" -f Makefile-libbz2_so cd $(DIR_APP) && make clean - cd $(DIR_APP) && make $(PARALLELISMFLAGS) + cd $(DIR_APP) && make CFLAGS="$(CFLAGS) -D_FILE_OFFSET_BITS=64" $(PARALLELISMFLAGS) cd $(DIR_APP) && make PREFIX=/usr install cd $(DIR_APP) && cp -v bzip2-shared /bin/bzip2