2002-03-09 02:54:58 +00:00
|
|
|
<sect2>
|
|
|
|
<title>Installation of Gawk</title>
|
|
|
|
|
2002-04-01 15:42:18 +01:00
|
|
|
<para>Warning: do NOT run <userinput>make uninstall</userinput> on this
|
|
|
|
package if you apply the <emphasis>sed</emphasis> fix to change the
|
|
|
|
<filename class="directory">libexec</filename> directory definition. The
|
|
|
|
<emphasis>uninstall</emphasis> rule in the <filename>Makefile</filename>
|
|
|
|
file runs a command like <userinput>rm -rf
|
|
|
|
<libexecdir>/*</userinput> Since we change the <filename
|
|
|
|
class="directory">libexec</filename> directory to <filename
|
|
|
|
class="directory">/usr/bin</filename> it'll run <userinput>rm -rf
|
|
|
|
/usr/bin/*</userinput></para>
|
|
|
|
|
2002-05-01 20:10:46 +01:00
|
|
|
<para>Install Gawk by running the following commands:</para>
|
2002-03-09 02:54:58 +00:00
|
|
|
|
2002-03-17 17:08:01 +00:00
|
|
|
<para><screen><userinput>cp awklib/Makefile.in awklib/Makefile.in.backup &&
|
2002-03-16 22:48:08 +00:00
|
|
|
sed -e '/^datadir/s/awk/gawk/' \
|
2002-03-17 17:08:01 +00:00
|
|
|
-e '/^libexecdir/s%/awk%%' awklib/Makefile.in.backup \
|
2002-05-02 21:15:02 +01:00
|
|
|
> awklib/Makefile.in &&
|
2002-05-01 20:10:46 +01:00
|
|
|
CPPFLAGS=-Dre_max_failures=re_max_failures2 \
|
2002-03-16 23:28:17 +00:00
|
|
|
./configure --prefix=$LFS/usr --disable-nls \
|
2002-05-02 21:15:02 +01:00
|
|
|
--libexecdir=$LFS/usr/bin &&
|
2002-03-09 02:54:58 +00:00
|
|
|
make LDFLAGS=-static &&
|
|
|
|
make install</userinput></screen></para>
|
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|