aboutsummaryrefslogtreecommitdiffstats
path: root/chapter05/bzip2-static-exp.sgml
diff options
context:
space:
mode:
authorGerard Beekmans <gerard@linuxfromscratch.org>2001-02-15 15:26:52 +0000
committerGerard Beekmans <gerard@linuxfromscratch.org>2001-02-15 15:26:52 +0000
commitb08f4096533577934b885fa9df41d3881d141612 (patch)
tree8e5ffc0ba65ac34d97cd6a896d33b85a897a6da8 /chapter05/bzip2-static-exp.sgml
parentad08014624938a3a3bfd1b44e8b27d02c7b06dd8 (diff)
Initial XML commit
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@174 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'chapter05/bzip2-static-exp.sgml')
-rw-r--r--chapter05/bzip2-static-exp.sgml33
1 files changed, 0 insertions, 33 deletions
diff --git a/chapter05/bzip2-static-exp.sgml b/chapter05/bzip2-static-exp.sgml
deleted file mode 100644
index 788de4298..000000000
--- a/chapter05/bzip2-static-exp.sgml
+++ /dev/null
@@ -1,33 +0,0 @@
-<sect2>
-<title>Command explanations</title>
-
-<para>
-<userinput>sed: </userinput> The sed command here searches for the
-string "$(CC) $(CFLAGS) -o" and replaced 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 your 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. As you'll
-notice, the -all-static value is only used with the binutils package and
-won't be used throughout the rest of this book.
-</para>
-
-</sect2>
-