mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-06-29 16:49:21 +01:00
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:
parent
827cc05c37
commit
ab7af9e6f0
@ -44,8 +44,10 @@
|
|||||||
|
|
||||||
<note>
|
<note>
|
||||||
<para>Similar to GMP, libffi builds with optimizations specific
|
<para>Similar to GMP, libffi builds with optimizations specific
|
||||||
to the processor in use. If building for another system, export
|
to the processor in use. If building for another system, change the
|
||||||
CFLAGS and CXXFLAGS to specify a generic build for your architecture.
|
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
|
If this is not done, all applications that link to libffi will trigger
|
||||||
Illegal Operation Errors.</para>
|
Illegal Operation Errors.</para>
|
||||||
</note>
|
</note>
|
||||||
|
Loading…
Reference in New Issue
Block a user