diff options
author | Eli Schwartz <eschwartz93@gmail.com> | 2024-03-14 20:42:09 -0400 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2024-03-15 01:22:21 +0000 |
commit | b360dd2fa7773ebce4567976f9aeceda77ffa875 (patch) | |
tree | d9ecf927803c585e352b7989603f9132b74edd38 /dev-libs/rocm-opencl-runtime | |
parent | media-libs/libnsgif: wire up tests (diff) | |
download | gentoo-b360dd2fa7773ebce4567976f9aeceda77ffa875.tar.gz gentoo-b360dd2fa7773ebce4567976f9aeceda77ffa875.tar.bz2 gentoo-b360dd2fa7773ebce4567976f9aeceda77ffa875.zip |
dev-libs/rocm-opencl-runtime: mark as LTO-unsafe, strict-aliasing unsafe
Closes: https://bugs.gentoo.org/856088
Signed-off-by: Eli Schwartz <eschwartz93@gmail.com>
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-libs/rocm-opencl-runtime')
3 files changed, 24 insertions, 0 deletions
diff --git a/dev-libs/rocm-opencl-runtime/rocm-opencl-runtime-5.7.1-r1.ebuild b/dev-libs/rocm-opencl-runtime/rocm-opencl-runtime-5.7.1-r1.ebuild index 65314b8b6b38..ade2c6f349f6 100644 --- a/dev-libs/rocm-opencl-runtime/rocm-opencl-runtime-5.7.1-r1.ebuild +++ b/dev-libs/rocm-opencl-runtime/rocm-opencl-runtime-5.7.1-r1.ebuild @@ -48,6 +48,14 @@ OB git-r3_checkout } src_configure() { + # -Werror=strict-aliasing + # https://bugs.gentoo.org/856088 + # https://github.com/ROCm/clr/issues/64 + # + # Do not trust it for LTO either + append-flags -fno-strict-aliasing + filter-lto + # Fix ld.lld linker error: https://github.com/RadeonOpenCompute/ROCm-OpenCL-Runtime/issues/155 append-ldflags $(test-flags-CCLD -Wl,--undefined-version) diff --git a/dev-libs/rocm-opencl-runtime/rocm-opencl-runtime-6.0.0.ebuild b/dev-libs/rocm-opencl-runtime/rocm-opencl-runtime-6.0.0.ebuild index 8a2b71872bdc..b6912994ddb7 100644 --- a/dev-libs/rocm-opencl-runtime/rocm-opencl-runtime-6.0.0.ebuild +++ b/dev-libs/rocm-opencl-runtime/rocm-opencl-runtime-6.0.0.ebuild @@ -48,6 +48,14 @@ OB git-r3_checkout } src_configure() { + # -Werror=strict-aliasing + # https://bugs.gentoo.org/856088 + # https://github.com/ROCm/clr/issues/64 + # + # Do not trust it for LTO either + append-flags -fno-strict-aliasing + filter-lto + # Fix ld.lld linker error: https://github.com/RadeonOpenCompute/ROCm-OpenCL-Runtime/issues/155 append-ldflags $(test-flags-CCLD -Wl,--undefined-version) diff --git a/dev-libs/rocm-opencl-runtime/rocm-opencl-runtime-9999.ebuild b/dev-libs/rocm-opencl-runtime/rocm-opencl-runtime-9999.ebuild index 878cf8bbc33d..1ca30c8a10ae 100644 --- a/dev-libs/rocm-opencl-runtime/rocm-opencl-runtime-9999.ebuild +++ b/dev-libs/rocm-opencl-runtime/rocm-opencl-runtime-9999.ebuild @@ -59,6 +59,14 @@ src_prepare() { } src_configure() { + # -Werror=strict-aliasing + # https://bugs.gentoo.org/856088 + # https://github.com/ROCm/clr/issues/64 + # + # Do not trust it for LTO either + append-flags -fno-strict-aliasing + filter-lto + # Fix ld.lld linker error: https://github.com/RadeonOpenCompute/ROCm-OpenCL-Runtime/issues/155 append-ldflags $(test-flags-CCLD -Wl,--undefined-version) |