mirror of
https://github.com/Zeckmathederg/glfs.git
synced 2025-02-03 22:57:55 +08:00
clang: add -DLLVM_BINUTILS_INCDIR
git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@24143 af4574ff-66df-0310-9fd7-8a98e5e911e0
This commit is contained in:
parent
2e2a28094d
commit
76bec58380
@ -225,6 +225,7 @@ cmake -DCMAKE_INSTALL_PREFIX=/usr \
|
||||
-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>
|
||||
|
||||
@ -339,6 +340,15 @@ cp -Rv tools/clang/docs/html/* /usr/share/doc/llvm-&llvm-version;/clang-html</us
|
||||
<xref linkend="mesa"/>.
|
||||
</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
|
||||
@ -394,7 +404,8 @@ cp -Rv tools/clang/docs/html/* /usr/share/doc/llvm-&llvm-version;/clang-html</us
|
||||
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},
|
||||
|
Loading…
Reference in New Issue
Block a user