diff options
author | Ionen Wolkens <ionen@gentoo.org> | 2024-10-28 07:07:02 -0400 |
---|---|---|
committer | Ionen Wolkens <ionen@gentoo.org> | 2024-10-28 07:15:12 -0400 |
commit | 899426ac479fc0c4d38d746143561e369d47a2e5 (patch) | |
tree | faf3a863b49b224517254d92b8f9e5a99aa62490 /gui-libs | |
parent | media-sound/deadbeef: Stabilize 1.9.6-r2 amd64, #942395 (diff) | |
download | gentoo-899426ac479fc0c4d38d746143561e369d47a2e5.tar.gz gentoo-899426ac479fc0c4d38d746143561e369d47a2e5.tar.bz2 gentoo-899426ac479fc0c4d38d746143561e369d47a2e5.zip |
gui-libs/egl-x11: quick workaround for clang
Not really looked at what exactly causes this yet, but fwiw "seems"
fine if compiled with -O0 (which implies there's likely some UB in
egl-x11's code).
Optimizations are not important for this library, so do a quick -O0
workaround for the time being.
Bug: https://bugs.gentoo.org/942396
Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
Diffstat (limited to 'gui-libs')
-rw-r--r-- | gui-libs/egl-x11/egl-x11-1.0.0_pre20240919-r1.ebuild (renamed from gui-libs/egl-x11/egl-x11-1.0.0_pre20240919.ebuild) | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/gui-libs/egl-x11/egl-x11-1.0.0_pre20240919.ebuild b/gui-libs/egl-x11/egl-x11-1.0.0_pre20240919-r1.ebuild index 16ded7bb7709..545151e96bd8 100644 --- a/gui-libs/egl-x11/egl-x11-1.0.0_pre20240919.ebuild +++ b/gui-libs/egl-x11/egl-x11-1.0.0_pre20240919-r1.ebuild @@ -3,7 +3,7 @@ EAPI=8 -inherit meson-multilib +inherit flag-o-matic meson-multilib toolchain-funcs # no releases yet, should typically update hash in sync with nvidia bumps HASH_EGLX11=8aac36c712561ebfecc82af3db15c50cd0d573fb @@ -35,3 +35,10 @@ DEPEND=" media-libs/libglvnd x11-base/xorg-proto " + +src_configure() { + # needs looking into, likely some UB broken at >=-O1 (bug #942396) + tc-is-clang && replace-flags '-O*' '-O0' + + meson-multilib_src_configure +} |