Changeset ab7af9e


Ignore:
Timestamp:
03/26/2022 03:25:36 PM (2 years ago)
Author:
Xi Ruoyao <xry111@…>
Branches:
11.2, 11.2-rc1, 11.3, 11.3-rc1, 12.0, 12.0-rc1, 12.1, 12.1-rc1, bdubbs/gcc13, multilib, renodr/libudev-from-systemd, s6-init, trunk, xry111/arm64, xry111/arm64-12.0, xry111/clfs-ng, xry111/loongarch, xry111/loongarch-12.0, xry111/loongarch-12.1, xry111/mips64el, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
Children:
355d761, d608267, f23beb1
Parents:
827cc05
git-author:
Xi Ruoyao <xry111@…> (03/26/2022 03:21:06 PM)
git-committer:
Xi Ruoyao <xry111@…> (03/26/2022 03:25:36 PM)
Message:

libffi: reword the note about "building for another system"

Telling the user to override CFLAGS and CXXFLAGS may cause two problems:

  1. We've added --with-gcc-arch=native, so the configure script will add "-march=native" into CFLAGS. Then we've not really verified which -march= value is the last one in the GCC command line and being really used.
  2. User may just export CFLAGS="-march=x86_64", without "-O2". This will produce unoptimized binaries.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • chapter08/libffi.xml

    r827cc05 rab7af9e  
    4545    <note>
    4646      <para>Similar to GMP, libffi builds with optimizations specific
    47       to the processor in use. If building for another system, export
    48       CFLAGS and CXXFLAGS to specify a generic build for your architecture.
     47      to the processor in use. If building for another system, change the
     48      value of the <parameter>--with-gcc-arch=</parameter> parameter in the
     49      following command to an architecture name fully implemented by the
     50      CPU on that system.
    4951      If this is not done, all applications that link to libffi will trigger
    5052      Illegal Operation Errors.</para>
Note: See TracChangeset for help on using the changeset viewer.