mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-07-18 10:15:05 +01:00
cross-ng: Simplify the command to build ip from IPRoute2 in chapter 7
I had some incorrect understanding about overriding make variables, thus a sed is used unnecessarily.
This commit is contained in:
parent
83b0abd7cf
commit
426c3a49e6
@ -44,18 +44,13 @@
|
||||
<sect2 role="installation">
|
||||
<title>Use IPRoute2 to Set Up Loopback Network Interface</title>
|
||||
|
||||
<para>IPRoute2 package has several dependencies not installed yet, but
|
||||
we only need <command>ip</command> utility from the package now.
|
||||
Disable the build of other utilities:</para>
|
||||
|
||||
<screen><userinput remap="pre">sed '/SUBDIRS/s/=.*/=lib ip/' -i Makefile</userinput></screen>
|
||||
|
||||
<para>Compile the package:</para>
|
||||
|
||||
<screen><userinput remap="make">PKG_CONFIG=false make</userinput></screen>
|
||||
<screen><userinput remap="make">PKG_CONFIG=false make SUBDIRS='lib ip'</userinput></screen>
|
||||
|
||||
<variablelist>
|
||||
<title>The meaning of the environment variable:</title>
|
||||
<title>The meaning of the environment and overriden make
|
||||
variables:</title>
|
||||
|
||||
<varlistentry>
|
||||
<term><parameter>PKG_CONFIG=false</parameter></term>
|
||||
@ -66,6 +61,16 @@
|
||||
need these dependencies.</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><parameter>SUBDIRS='lib ip'</parameter></term>
|
||||
<listitem>
|
||||
<para>Only build the <command>ip</command> utility from the
|
||||
package and disable the build of other utilities. This is needed
|
||||
to prevent a build failure due to the lack of some
|
||||
dependencies.</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
</variablelist>
|
||||
|
||||
<para>It's not needed to install the <command>ip</command> utility now.
|
||||
|
Loading…
Reference in New Issue
Block a user