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.
This commit is contained in:
Xi Ruoyao 2022-03-26 23:21:06 +08:00
parent 827cc05c37
commit ab7af9e6f0
No known key found for this signature in database
GPG Key ID: D95E4716CCBB34DC

View File

@ -44,8 +44,10 @@
<note>
<para>Similar to GMP, libffi builds with optimizations specific
to the processor in use. If building for another system, export
CFLAGS and CXXFLAGS to specify a generic build for your architecture.
to the processor in use. If building for another system, change the
value of the <parameter>--with-gcc-arch=</parameter> parameter in the
following command to an architecture name fully implemented by the
CPU on that system.
If this is not done, all applications that link to libffi will trigger
Illegal Operation Errors.</para>
</note>