summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'profiles/hardened/amd64/profile.bashrc')
-rw-r--r--profiles/hardened/amd64/profile.bashrc3
1 files changed, 3 insertions, 0 deletions
diff --git a/profiles/hardened/amd64/profile.bashrc b/profiles/hardened/amd64/profile.bashrc
index a23dacf85363..6e73662e0791 100644
--- a/profiles/hardened/amd64/profile.bashrc
+++ b/profiles/hardened/amd64/profile.bashrc
@@ -3,3 +3,6 @@
#SANDBOX_WRITE="${SANDBOX_WRITE}:/usr/lib64/conftest:/usr/lib64/cf"
addwrite /usr/lib64/conftest
addwrite /usr/lib64/cf
+
+# quick fix for non-multilib systems
+([[ "$EBUILD_PHASE" = "compile" ]] && [[ $PN = "libperl" ]]) && export CFLAGS="${CFLAGS} -DHAS_SHMAT_PROTOTYPE"