diff options
author | Mark Hymers <markh@linuxfromscratch.org> | 2001-08-23 22:38:49 +0000 |
---|---|---|
committer | Mark Hymers <markh@linuxfromscratch.org> | 2001-08-23 22:38:49 +0000 |
commit | 45714a7d3b3c0851d598d966a2ce9790e177c6e1 (patch) | |
tree | 0a575e047b942b5606f2bb2b06d539649b180482 /chapter05/bzip2-exp.xml | |
parent | b58a7ebf15eb69dffdc4c5cba84422a1fd1bdc08 (diff) |
[Bug 127] Clean up ln, mv and cp commands
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@1011 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'chapter05/bzip2-exp.xml')
-rw-r--r-- | chapter05/bzip2-exp.xml | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/chapter05/bzip2-exp.xml b/chapter05/bzip2-exp.xml index 9c8853566..83263ccbd 100644 --- a/chapter05/bzip2-exp.xml +++ b/chapter05/bzip2-exp.xml @@ -1,34 +1,6 @@ <sect2> <title>Command explanations</title> -<!-- -<para><userinput>sed: </userinput> The sed command here searches for the -string "$(CC) $(CFLAGS) -o" and replaces it by "$(CC) $(CFLAGS) -$(LDFLAGS) -o" in the Makefile file. We make that modification so it -will be easier to link bzip2 statically.</para> - -<para><userinput>...Makefile | make -f -:</userinput> Makefile -is the last parameter of the sed command which indicates the file to -search and replace in. Sed normally sends the modified file to stdout -(standard output), which will be the console. With the construction we -use, sed's output will be piped to the make program. Normally, when make -is started, it tries to find a number of files like Makefile. But we have -modified the Makefile file so we don't want make to use it. The "-f -" -parameter tells make to read it's input from another file, or from stdin -(standard input) which the dash (-) implies. This is one way to do it. -Another way would be to have sed write the output to a different file -and tell make with the -f parameter to read that alternate file.</para> - -<para><userinput>LDFLAGS=-static:</userinput> This is the second way we use to -link a package statically. This is also the most common way. -The -all-static value is only used with the binutils package and won't -be used throughout the rest of this book.</para> - -I HAVEN'T REMOVED THIS AS WE MAY NEED TO COPY SOME OF IT TO A LATER -PACKAGE. IS THIS THE CASE? - ---> - <para><userinput>make CC="gcc -static": </userinput>This is the method we use to tell gcc that we want bzip2 to be linked statically.</para> |