Ignore:
Timestamp:
07/07/2018 05:48:11 PM (6 years ago)
Author:
Bruce Dubbs <bdubbs@…>
Branches:
10.0, 10.0-rc1, 10.1, 10.1-rc1, 11.0, 11.0-rc1, 11.0-rc2, 11.0-rc3, 11.1, 11.1-rc1, 11.2, 11.2-rc1, 11.3, 11.3-rc1, 12.0, 12.0-rc1, 12.1, 12.1-rc1, 8.3, 8.4, 9.0, 9.1, arm, bdubbs/gcc13, ml-11.0, multilib, renodr/libudev-from-systemd, s6-init, trunk, xry111/arm64, xry111/arm64-12.0, xry111/clfs-ng, xry111/lfs-next, xry111/loongarch, xry111/loongarch-12.0, xry111/loongarch-12.1, xry111/mips64el, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
Children:
d47b15b
Parents:
e6035d6
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • chapter06/libffi.xml

    re6035d6 rb8b65b7  
    5656    <para>Prepare libffi for compilation:</para>
    5757
    58 <screen><userinput remap="configure">./configure --prefix=/usr --disable-static</userinput></screen>
     58<screen><userinput remap="configure">./configure --prefix=/usr --disable-static --with-gcc-arch=native</userinput></screen>
     59
     60    <variablelist>
     61      <title>The meaning of the configure option:</title>
     62
     63      <varlistentry>
     64        <term><parameter>--with-gcc-arch=native</parameter></term>
     65        <listitem>
     66          <para>Ensure gcc optimizes for the current system.  If this
     67          is not specified, the system is guessed and the code generated
     68          may not be correct for some systems.  If the generated code
     69          will be copied from the native system to a less capable
     70          system, use the less capable system as a parameter. For details
     71          about alternative system types, see <ulink
     72          url='https://gcc.gnu.org/onlinedocs/gcc-8.1.0/gcc/x86-Options.html'>
     73          the x86 options in the gcc manual</ulink>.</para>
     74        </listitem>
     75      </varlistentry>
     76
     77    </variablelist>
    5978
    6079    <para>Compile the package:</para>
Note: See TracChangeset for help on using the changeset viewer.