[lfs] 01/03: gcc: Add --enable-targets=all for -m64 on 32-bit LFS

"Git Owner" ([email protected] via lfs-book Mailing List) <[email protected]>
Newsgroups gmane.linux.lfs.book
Message-ID <[email protected]>
This is an automated email from the git hooks/post-receive script.

git pushed a commit to branch xry111/uefi
in repository lfs.

commit d0f9a5150e9a4456c5246e2c1488ad2dc72decb2
Author: Xi Ruoyao <[email protected]>
AuthorDate: Mon Dec 23 13:58:09 2024 +0800

    gcc: Add --enable-targets=all for -m64 on 32-bit LFS
    
    The support is needed for building GRUB for 64-bit UEFI on 32-bit LFS.
---
 chapter08/gcc.xml | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/chapter08/gcc.xml b/chapter08/gcc.xml
index b3397d8be..e0b0f08f5 100644
--- a/chapter08/gcc.xml
+++ b/chapter08/gcc.xml
@@ -64,6 +64,7 @@ cd       build</userinput></screen>
              --enable-default-pie     \
              --enable-default-ssp     \
              --enable-host-pie        \
+             --enable-targets=all     \
              --disable-multilib       \
              --disable-bootstrap      \
              --disable-fixincludes    \
@@ -104,6 +105,16 @@ cd       build</userinput></screen>
           the Zlib library, rather than its own internal copy.</para>
         </listitem>
       </varlistentry>
+
+      <varlistentry>
+        <term><parameter>--enable-targets=all/</parameter></term>
+        <listitem>
+          <para>This switch tells GCC to enable 64-bit code generation
+          support even if we are building it for a 32-bit system.
+          It's needed to build GRUB for 64-bit UEFI.  This switch has no
+          effect if building a 64-bit LFS.</para>
+        </listitem>
+      </varlistentry>
     </variablelist>
 
     <note>

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.

-- 
http://lists.linuxfromscratch.org/sympa/info/lfs-book
Unsubscribe: See the above information page
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.