Author: xry111
Date: Mon Jan 25 23:44:58 2021
New Revision: 24143
Log:
clang: add -DLLVM_BINUTILS_INCDIR
Modified:
trunk/BOOK/general/prog/llvm.xml
Modified: trunk/BOOK/general/prog/llvm.xml
==============================================================================
--- trunk/BOOK/general/prog/llvm.xml Mon Jan 25 23:34:39 2021 (r24142)
+++ trunk/BOOK/general/prog/llvm.xml Mon Jan 25 23:44:58 2021 (r24143)
@@ -225,6 +225,7 @@
-DLLVM_ENABLE_RTTI=ON \
-DLLVM_TARGETS_TO_BUILD="host;AMDGPU;BPF" \
-DLLVM_BUILD_TESTS=ON \
+ -DLLVM_BINUTILS_INCDIR=/usr/include \
-Wno-dev -G Ninja .. &&
ninja</userinput></screen>
@@ -340,6 +341,15 @@
</para>
<para>
+ <parameter>-DLLVM_BINUTILS_INCDIR=/usr/include</parameter>: Used to
+ tell the building system the location of binutils headers, installed
+ in LFS. This allows the building of
+ <filename class="libraryfile">LLVMgold.so</filename>, which is needed
+ for building programs with <command>clang</command> and Link Time
+ Optimization (LTO).
+ </para>
+
+ <para>
<option>-DBUILD_SHARED_LIBS=ON</option>: if used instead of
<parameter>-DLLVM_BUILD_LLVM_DYLIB=ON</parameter> and
<parameter>-DLLVM_LINK_LLVM_DYLIB=ON</parameter>, builds all the
@@ -394,7 +404,8 @@
libLTO.so,
libRemarks.so,
libclang.so,
- and libclang*.a (63 libraries)
+ libclang*.a (63 libraries),
+ and LLVMgold.so
</seg>
<seg>
/usr/include/{clang,clang-c,llvm,llvm-c},
--
http://lists.linuxfromscratch.org/listinfo/blfs-book
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page