summaryrefslogtreecommitdiff
path: root/profiles/features
diff options
context:
space:
mode:
Diffstat (limited to 'profiles/features')
-rw-r--r--profiles/features/llvm/package.use5
-rw-r--r--profiles/features/llvm/package.use.force10
2 files changed, 13 insertions, 2 deletions
diff --git a/profiles/features/llvm/package.use b/profiles/features/llvm/package.use
index 267fafefe792..e878f28f7454 100644
--- a/profiles/features/llvm/package.use
+++ b/profiles/features/llvm/package.use
@@ -1,9 +1,10 @@
+# Make static linking work by default for simple binaries (bug #892956)
+sys-libs/llvm-libunwind static-libs
+
# use lld by default
sys-devel/llvm -binutils-plugin
# use all defaults
-sys-devel/clang default-compiler-rt default-lld default-libcxx llvm-libunwind
-sys-devel/clang-common default-compiler-rt default-lld default-libcxx llvm-libunwind
sys-libs/compiler-rt clang
# disable sanitizers for now
diff --git a/profiles/features/llvm/package.use.force b/profiles/features/llvm/package.use.force
new file mode 100644
index 000000000000..669f1f86ad87
--- /dev/null
+++ b/profiles/features/llvm/package.use.force
@@ -0,0 +1,10 @@
+# Copyright 2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+# Sam James <sam@gentoo.org> (2023-03-03)
+# Force the toolchain environment we expect on the LLVM profiles.
+# default-libcxx in particular changes ABI so can't be toggled at-will, and other
+# profile settings expect it.
+# TODO: Make a profile without default-libcxx too?
+sys-devel/clang default-compiler-rt default-lld default-libcxx
+sys-devel/clang-common default-compiler-rt default-lld default-libcxx