]> git.ipfire.org Git - ipfire-3.x.git/commitdiff
Fixed compiling with -fpic for bzip2.
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 26 Mar 2009 10:03:15 +0000 (11:03 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 26 Mar 2009 10:03:15 +0000 (11:03 +0100)
lfs/bzip2

index 827985e5ecab4df27ce03e8fde21c068882aa242..c6257e8edeed894d4beaec4213f6ae94291ce465 100644 (file)
--- 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