diff options
author | Yiyang Wu <xgreenlandforwyy@gmail.com> | 2023-01-28 17:31:48 +0800 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2023-02-02 12:53:04 +0000 |
commit | ae32bce0b823140512aaf748572216e4e91e98b1 (patch) | |
tree | 282e64f9bf9dc76e97520600b6ce5596621d1bf8 /dev-libs/rocm-comgr | |
parent | dev-libs/rocm-comgr: add myself as maintainer (diff) | |
download | gentoo-ae32bce0b823140512aaf748572216e4e91e98b1.tar.gz gentoo-ae32bce0b823140512aaf748572216e4e91e98b1.tar.bz2 gentoo-ae32bce0b823140512aaf748572216e4e91e98b1.zip |
dev-libs/rocm-comgr: append -fno-stack-protector at runtime
Closes: https://bugs.gentoo.org/892371
Signed-off-by: Yiyang Wu <xgreenlandforwyy@gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/29291
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-libs/rocm-comgr')
-rw-r--r-- | dev-libs/rocm-comgr/files/rocm-comgr-5.3.3-fno-stack-protecter.patch | 14 | ||||
-rw-r--r-- | dev-libs/rocm-comgr/rocm-comgr-5.1.3-r3.ebuild (renamed from dev-libs/rocm-comgr/rocm-comgr-5.1.3-r2.ebuild) | 1 | ||||
-rw-r--r-- | dev-libs/rocm-comgr/rocm-comgr-5.3.3-r1.ebuild | 1 |
3 files changed, 16 insertions, 0 deletions
diff --git a/dev-libs/rocm-comgr/files/rocm-comgr-5.3.3-fno-stack-protecter.patch b/dev-libs/rocm-comgr/files/rocm-comgr-5.3.3-fno-stack-protecter.patch new file mode 100644 index 000000000000..c8d078ee8946 --- /dev/null +++ b/dev-libs/rocm-comgr/files/rocm-comgr-5.3.3-fno-stack-protecter.patch @@ -0,0 +1,14 @@ +This add -fno-stack-protector to all compilation, since -f-stack-protector is currently unsupported by ROCm +Reference: https://bugs.gentoo.org/890377 +index 465187e..0baf925 100644 +--- a/src/comgr-compiler.cpp ++++ b/src/comgr-compiler.cpp +@@ -850,6 +850,8 @@ amd_comgr_status_t AMDGPUCompiler::processFile(const char *InputFilePath, + Argv.push_back(Arg); + } + ++ Argv.push_back("-fno-stack-protector"); ++ + for (auto &Option : ActionInfo->getOptions()) { + Argv.push_back(Option.c_str()); + if (Option.rfind("--rocm-path", 0) == 0) { diff --git a/dev-libs/rocm-comgr/rocm-comgr-5.1.3-r2.ebuild b/dev-libs/rocm-comgr/rocm-comgr-5.1.3-r3.ebuild index b080235a4798..5165add2a564 100644 --- a/dev-libs/rocm-comgr/rocm-comgr-5.1.3-r2.ebuild +++ b/dev-libs/rocm-comgr/rocm-comgr-5.1.3-r3.ebuild @@ -26,6 +26,7 @@ PATCHES=( "${FILESDIR}/0001-COMGR-changes-needed-for-upstream-llvm.patch" "${FILESDIR}/${PN}-5.1.3-llvm-15-remove-zlib-gnu" "${FILESDIR}/${PN}-5.1.3-llvm-15-args-changed" + "${FILESDIR}/${PN}-5.3.3-fno-stack-protecter.patch" ) DESCRIPTION="Radeon Open Compute Code Object Manager" diff --git a/dev-libs/rocm-comgr/rocm-comgr-5.3.3-r1.ebuild b/dev-libs/rocm-comgr/rocm-comgr-5.3.3-r1.ebuild index c00adc6c1727..1c491f3f83b8 100644 --- a/dev-libs/rocm-comgr/rocm-comgr-5.3.3-r1.ebuild +++ b/dev-libs/rocm-comgr/rocm-comgr-5.3.3-r1.ebuild @@ -28,6 +28,7 @@ PATCHES=( "${FILESDIR}/0001-Find-CLANG_RESOURCE_DIR-using-clang-print-resource-d.patch" "${FILESDIR}/${PN}-5.3.3-HIPIncludePath-not-needed.patch" "${FILESDIR}/${PN}-5.3.3-fix-tests.patch" + "${FILESDIR}/${PN}-5.3.3-fno-stack-protecter.patch" ) DESCRIPTION="Radeon Open Compute Code Object Manager" |