mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-03-09 15:39:51 +00:00
loongarch: Binutils: Apply an upstream fix for LTO
This issue is known to cause Mozilla packages fail to build. So fix it just like what we did for Binutils-2.38 on x86_64.
This commit is contained in:
parent
ee8c846895
commit
8b8b87bcb2
@ -41,6 +41,17 @@
|
||||
<sect2 role="installation">
|
||||
<title>Installation of Binutils</title>
|
||||
|
||||
<!-- https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=029e52bac7f3a6dd8b39f7f3d298b73174da806b -->
|
||||
<para>First, fix an issue causing some packages fail to build with
|
||||
Link Time Optimization (LTO). Note that some BLFS packages will be
|
||||
built with LTO enabled by default even if you don't enable it
|
||||
explicitly:</para>
|
||||
|
||||
<screen><userinput remap="pre">for i in LO12 HI20 ADD; do
|
||||
sed -e '/DESC64_HI12/a\ case BFD_RELOC_LARCH_TLS_LE_'${i}'_R:' \
|
||||
-i gas/config/tc-loongarch.c
|
||||
done</userinput></screen>
|
||||
|
||||
<para>The Binutils documentation recommends building Binutils
|
||||
in a dedicated build directory:</para>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user