From b8b65b7be795a5efd9db3a974d02f777b6799806 Mon Sep 17 00:00:00 2001 From: Bruce Dubbs Date: Sat, 7 Jul 2018 17:48:11 +0000 Subject: [PATCH] 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 --- chapter01/changelog.xml | 14 +++++++++++++- chapter06/libffi.xml | 21 ++++++++++++++++++++- general.ent | 6 +++--- 3 files changed, 36 insertions(+), 5 deletions(-) diff --git a/chapter01/changelog.xml b/chapter01/changelog.xml index 18f81a9a1..6c16d292c 100644 --- a/chapter01/changelog.xml +++ b/chapter01/changelog.xml @@ -44,7 +44,19 @@ --> - 2018-07-03 + 2018-07-07 + + + [bdubbs] - Add a configuration option to libffi to + ensure proper architecture selection. Include an explanation + and how to select alternative options. Fixes + #4303. + + + + + + 2018-07-06 [bdubbs] - Make symbolic links in inital part of 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@/' \ Prepare libffi for compilation: -./configure --prefix=/usr --disable-static +./configure --prefix=/usr --disable-static --with-gcc-arch=native + + + The meaning of the configure option: + + + --with-gcc-arch=native + + 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 + the x86 options in the gcc manual. + + + + Compile the package: diff --git a/general.ent b/general.ent index 459df6cf8..6bc6c6703 100644 --- a/general.ent +++ b/general.ent @@ -1,13 +1,13 @@ - + - + - +