summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dev-util/bazel/metadata.xml1
-rw-r--r--profiles/features/prefix/package.use4
2 files changed, 5 insertions, 0 deletions
diff --git a/dev-util/bazel/metadata.xml b/dev-util/bazel/metadata.xml
index 7ddb1068e6a0..7eb6224be85d 100644
--- a/dev-util/bazel/metadata.xml
+++ b/dev-util/bazel/metadata.xml
@@ -19,5 +19,6 @@
</longdescription>
<use>
<flag name="tools">Install extra bazel tools to build from sources</flag>
+ <flag name="static-libs">Link libstdc++ statically</flag>
</use>
</pkgmetadata>
diff --git a/profiles/features/prefix/package.use b/profiles/features/prefix/package.use
index 20764aad409e..1990af48d80a 100644
--- a/profiles/features/prefix/package.use
+++ b/profiles/features/prefix/package.use
@@ -1,2 +1,6 @@
# Don't enable the security measures for convienence
sys-apps/portage -rsync-verify
+
+# Yiyang Wu <xgreenlandforwyy@gmail.com> (2021-03-03)
+# bazel should link libstdc++ statically in prefix to avoid finding host's libstdc++ when building other packages
+dev-util/bazel static-libs