diff options
Diffstat (limited to 'dev-libs/rocm-comgr/files/rocm-comgr-5.3.3-fno-stack-protector.patch')
-rw-r--r-- | dev-libs/rocm-comgr/files/rocm-comgr-5.3.3-fno-stack-protector.patch | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/dev-libs/rocm-comgr/files/rocm-comgr-5.3.3-fno-stack-protector.patch b/dev-libs/rocm-comgr/files/rocm-comgr-5.3.3-fno-stack-protector.patch new file mode 100644 index 000000000000..c8d078ee8946 --- /dev/null +++ b/dev-libs/rocm-comgr/files/rocm-comgr-5.3.3-fno-stack-protector.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) { |