diff --git a/chapter05/bzip2-exp.xml b/chapter05/bzip2-exp.xml index b53254eab..9c8853566 100644 --- a/chapter05/bzip2-exp.xml +++ b/chapter05/bzip2-exp.xml @@ -1,6 +1,7 @@ Command explanations + + +make CC="gcc -static": This is the method +we use to tell gcc that we want bzip2 to be linked statically. + diff --git a/chapter05/bzip2-inst.xml b/chapter05/bzip2-inst.xml index 2c2f04dbc..aa5d87dd8 100644 --- a/chapter05/bzip2-inst.xml +++ b/chapter05/bzip2-inst.xml @@ -3,9 +3,7 @@ Install Bzip2 by running the following commands: -sed \ -   s/"\$(CC) \$(CFLAGS) -o"/"\$(CC) \$(CFLAGS) \$(LDFLAGS) -o"/ \ -   Makefile | make -f - LDFLAGS=-static && +make CC="gcc -static" && make PREFIX=$LFS/usr install && cd $LFS/usr/bin && mv bzcat bunzip2 bzip2 bzip2recover $LFS/bin