summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSv. Lockal <lockalsash@gmail.com>2023-10-18 18:37:09 +0000
committerBenda Xu <heroxbd@gentoo.org>2023-11-19 10:18:15 +0800
commit6992e6ff39664c798459db3f93e048a06095adf6 (patch)
treeb91397c90bd6518eaa49837684d80f49cf26a999 /dev-util/hipcc/files/hipcc-5.7.1-fno-stack-protector.patch
parentapp-i18n/ibus: Drop old versions (diff)
downloadgentoo-6992e6ff39664c798459db3f93e048a06095adf6.tar.gz
gentoo-6992e6ff39664c798459db3f93e048a06095adf6.tar.bz2
gentoo-6992e6ff39664c798459db3f93e048a06095adf6.zip
dev-util/hipcc-5.7.1: fix compilation issues
- Restore the patch for adding -fno-stack-protector - Better handling of clang path using llvm.eclass - Fix the device lib path parsed to clang - QA: remove files installed to wrong location Bug: https://bugs.gentoo.org/890377 Bug: https://github.com/gentoo/gentoo/pull/33400 Signed-off-by: Sv. Lockal <lockalsash@gmail.com> Signed-off-by: Yiyang Wu <xgreenlandforwyy@gmail.com> Signed-off-by: Benda Xu <heroxbd@gentoo.org> Closes: https://github.com/gentoo/gentoo/pull/33845
Diffstat (limited to 'dev-util/hipcc/files/hipcc-5.7.1-fno-stack-protector.patch')
-rw-r--r--dev-util/hipcc/files/hipcc-5.7.1-fno-stack-protector.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/dev-util/hipcc/files/hipcc-5.7.1-fno-stack-protector.patch b/dev-util/hipcc/files/hipcc-5.7.1-fno-stack-protector.patch
new file mode 100644
index 000000000000..c46420265005
--- /dev/null
+++ b/dev-util/hipcc/files/hipcc-5.7.1-fno-stack-protector.patch
@@ -0,0 +1,13 @@
+Related bug: https://bugs.gentoo.org/890377
+--- a/bin/hipcc.pl
++++ b/bin/hipcc.pl
+@@ -552,6 +552,9 @@ if ($buildDeps and $HIP_PLATFORM eq 'amd') {
+ # pass-through CPP mode.
+
+ if ($HIP_PLATFORM eq "amd") {
++ # Append -fno-stack-protector due to stack protection for HIP is not supported
++ $HIPCXXFLAGS .= " -fno-stack-protector";
++ $HIPCFLAGS .= " -fno-stack-protector";
+ # Set default optimization level to -O3 for hip-clang.
+ if ($optArg eq "") {
+ $HIPCXXFLAGS .= " -O3";