diff options
-rw-r--r-- | chapter05/gawk-inst.xml | 14 | ||||
-rw-r--r-- | chapter06/gawk-inst.xml | 7 |
2 files changed, 9 insertions, 12 deletions
diff --git a/chapter05/gawk-inst.xml b/chapter05/gawk-inst.xml index e07c64089..bdbb93a5a 100644 --- a/chapter05/gawk-inst.xml +++ b/chapter05/gawk-inst.xml @@ -7,11 +7,10 @@ following commands can be used in this case. Note that these commands can also be used for other glibc versions so if you aren't sure, then use the first version.</para> -<para><screen><userinput>cd awklib && -cp Makefile.in Makefile.in.backup && +<para><screen><userinput>cp awklib/Makefile.in awklib/Makefile.in.backup && sed -e '/^datadir/s/awk/gawk/' \ --e '/^libexecdir/s%/awk%%' Makefile.in.backup > Makefile.in && -cd .. && +-e '/^libexecdir/s%/awk%%' awklib/Makefile.in.backup \ + > awklib/Makefile.in && export CPPFLAGS=-Dre_max_failures=re_max_failures2 && ./configure --prefix=$LFS/usr --disable-nls \ --libexecdir=$LFS/usr/bin && @@ -22,11 +21,10 @@ make install</userinput></screen></para> <para>If you are using a newer glibc version (2.2.x), you can use the following commands to install Gawk:</para> -<para><screen><userinput>cd awklib && -cp Makefile.in Makefile.in.backup && +<para><screen><userinput>cp awklib/Makefile.in awklib/Makefile.in.backup && sed -e '/^datadir/s/awk/gawk/' \ --e '/^libexecdir/s%/awk%%' Makefile.in.backup > Makefile.in && -cd .. && +-e '/^libexecdir/s%/awk%%' awklib/Makefile.in.backup \ + > awklib/Makefile.in && ./configure --prefix=$LFS/usr --disable-nls \ --libexecdir=$LFS/usr/bin && make LDFLAGS=-static && diff --git a/chapter06/gawk-inst.xml b/chapter06/gawk-inst.xml index 0796a41c4..de807a849 100644 --- a/chapter06/gawk-inst.xml +++ b/chapter06/gawk-inst.xml @@ -3,11 +3,10 @@ <para>Install Gawk by running the following commands:</para> -<para><screen><userinput>cd awklib && -cp Makefile.in Makefile.in.backup && +<para><screen><userinput>cp awklib/Makefile.in awklib/Makefile.in.backup && sed -e '/^datadir/s/awk/gawk/' \ --e '/^libexecdir/s%/awk%%' Makefile.in.backup > Makefile.in && -cd .. && +-e '/^libexecdir/s%/awk%%' awklib/Makefile.in.backup \ + > awklib/Makefile.in && ./configure --prefix=/usr --libexecdir=/usr/bin && make && make install</userinput></screen></para> |