[blfs] branch trunk updated: llvm: move /etc/clang configuration before compilation
| Newsgroups | gmane.linux.lfs.beyond.book |
|---|---|
| Message-ID | <178426530578.348713.376367968210565806@rivendell.linuxfromscratch.org> |
This is an automated email from the git hooks/post-receive script.
git pushed a commit to branch trunk
in repository blfs.
The following commit(s) were added to refs/heads/trunk by this push:
new 4b26c70d47 llvm: move /etc/clang configuration before compilation
4b26c70d47 is described below
commit 4b26c70d474b634a4cd3f1520dfcd645a6368784
Author: Xi Ruoyao <[email protected]>
AuthorDate: Fri Jul 17 00:20:33 2026 +0800
llvm: move /etc/clang configuration before compilation
---
general/prog/llvm.xml | 44 +++++++++++++++++++++++---------------------
1 file changed, 23 insertions(+), 21 deletions(-)
diff --git a/general/prog/llvm.xml b/general/prog/llvm.xml
index 5615aefae6..dee0a10e10 100644
--- a/general/prog/llvm.xml
+++ b/general/prog/llvm.xml
@@ -138,6 +138,29 @@
<screen><userinput>sed 's/utility/tool/' -i llvm/utils/FileCheck/CMakeLists.txt</userinput></screen>
+ <para>
+ As the &root; user, create two configuration
+ files to make <xref linkend='gSSP'/> enabled by default for
+ <command>clang</command> and <command>clang++</command>, so
+ the default configuration of their SSP feature will be consistent
+ with <xref linkend='gcc'/>:
+ </para>
+
+<screen role='root'><userinput>mkdir -pv /etc/clang &&
+for i in clang clang++; do
+ echo -fstack-protector-strong > /etc/clang/$i.cfg
+done</userinput></screen>
+
+ <note>
+ <para>
+ Generally we only create the configuration files after installing
+ the package in BLFS. However in this case the building system
+ will build compiler-rt with <command>clang</command> and
+ <command>clang++</command>, so we create the configuration files
+ before compiling LLVM to ensure compiler-rt built with SSP.
+ </para>
+ </note>
+
<para>
Install <application>LLVM</application> by running the following
commands:
@@ -405,27 +428,6 @@ rmdir -v - -ignore-fail-on-non-empty /usr/share/doc/LLVM</userinput></screen>
</sect2>
- <sect2 role="configuration">
- <title>Configuring LLVM</title>
-
- <sect3 id="llvm-config-info">
- <title>Configuration Information</title>
-
- <para>
- If you've built Clang, as the &root; user create two configuration
- files to make <xref linkend='gSSP'/> enabled by default for
- <command>clang</command> and <command>clang++</command>, so
- the default configuration of their SSP feature will be consistent
- with <xref linkend='gcc'/>:
- </para>
-
-<screen role='root'><userinput>mkdir -pv /etc/clang &&
-for i in clang clang++; do
- echo -fstack-protector-strong > /etc/clang/$i.cfg
-done</userinput></screen>
- </sect3>
- </sect2>
-
<sect2 role="content">
<title>Contents</title>
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
--
http://lists.linuxfromscratch.org/sympa/info/blfs-book
Unsubscribe: See the above information page