From 811364d703b8c5e8526b827e6947298993ce7a30 Mon Sep 17 00:00:00 2001 From: Mark Hymers Date: Wed, 15 Aug 2001 13:00:49 +0000 Subject: [PATCH] replace sed with option to gcc git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@974 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689 --- chapter05/bzip2-exp.xml | 9 +++++++++ chapter05/bzip2-inst.xml | 4 +--- 2 files changed, 10 insertions(+), 3 deletions(-) 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