diff options
author | Bruce Dubbs <bdubbs@linuxfromscratch.org> | 2018-07-07 17:48:11 +0000 |
---|---|---|
committer | Bruce Dubbs <bdubbs@linuxfromscratch.org> | 2018-07-07 17:48:11 +0000 |
commit | b8b65b7be795a5efd9db3a974d02f777b6799806 (patch) | |
tree | 717cc00f40900d4a379ea3e0c9cc494bf3922a8e /chapter06/libffi.xml | |
parent | e6035d688f8fc461d9d5dff81c1fdb9bb7bd27fc (diff) |
Add a configuration option to libffi to ensure proper
architecture selection. Include an explanation
and how to select alternative options.
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@11435 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'chapter06/libffi.xml')
-rw-r--r-- | chapter06/libffi.xml | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/chapter06/libffi.xml b/chapter06/libffi.xml index 5ebc27270..c0aba3cd5 100644 --- a/chapter06/libffi.xml +++ b/chapter06/libffi.xml @@ -55,7 +55,26 @@ sed -e '/^includedir/ s/=.*$/=@includedir@/' \ <para>Prepare libffi for compilation:</para> -<screen><userinput remap="configure">./configure --prefix=/usr --disable-static</userinput></screen> +<screen><userinput remap="configure">./configure --prefix=/usr --disable-static --with-gcc-arch=native</userinput></screen> + + <variablelist> + <title>The meaning of the configure option:</title> + + <varlistentry> + <term><parameter>--with-gcc-arch=native</parameter></term> + <listitem> + <para>Ensure gcc optimizes for the current system. If this + is not specified, the system is guessed and the code generated + may not be correct for some systems. If the generated code + will be copied from the native system to a less capable + system, use the less capable system as a parameter. For details + about alternative system types, see <ulink + url='https://gcc.gnu.org/onlinedocs/gcc-8.1.0/gcc/x86-Options.html'> + the x86 options in the gcc manual</ulink>.</para> + </listitem> + </varlistentry> + + </variablelist> <para>Compile the package:</para> |