diff options
author | Ionen Wolkens <ionen@gentoo.org> | 2024-06-01 22:57:10 -0400 |
---|---|---|
committer | Ionen Wolkens <ionen@gentoo.org> | 2024-06-01 23:43:36 -0400 |
commit | 593965e4bc4692323d330191d13bea191203d717 (patch) | |
tree | bb7779b01b4a945d6844498e33d3b6300fbc568b | |
parent | app-arch/xz-utils: cater to libarchive tar harder (diff) | |
download | gentoo-593965e4bc4692323d330191d13bea191203d717.tar.gz gentoo-593965e4bc4692323d330191d13bea191203d717.tar.bz2 gentoo-593965e4bc4692323d330191d13bea191203d717.zip |
app-emulation/wine-proton: fix build with -Os
Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
6 files changed, 28 insertions, 0 deletions
diff --git a/app-emulation/wine-proton/files/wine-proton-7.0.6-vulkan-libm.patch b/app-emulation/wine-proton/files/wine-proton-7.0.6-vulkan-libm.patch new file mode 100644 index 000000000000..b81778fb957c --- /dev/null +++ b/app-emulation/wine-proton/files/wine-proton-7.0.6-vulkan-libm.patch @@ -0,0 +1,12 @@ +Valve's patches add use of "ceil" without using libm, it works +by accident with -O2 but fails with -Os. + +ld: dlls/winevulkan/vulkan.o: in function `fshack_vk_queue_present': +vulkan.c:(.text+0x12f46): undefined reference to `ceil' +--- a/dlls/winevulkan/Makefile.in ++++ b/dlls/winevulkan/Makefile.in +@@ -4,3 +4,3 @@ + IMPORTS = user32 gdi32 advapi32 setupapi win32u +-EXTRALIBS = $(PTHREAD_LIBS) ++EXTRALIBS = -lm $(PTHREAD_LIBS) + diff --git a/app-emulation/wine-proton/files/wine-proton-8.0.5c-vulkan-libm.patch b/app-emulation/wine-proton/files/wine-proton-8.0.5c-vulkan-libm.patch new file mode 100644 index 000000000000..c3d9794fbbfe --- /dev/null +++ b/app-emulation/wine-proton/files/wine-proton-8.0.5c-vulkan-libm.patch @@ -0,0 +1,12 @@ +Valve's patches add use of "ceil" without using libm, it works +by accident with -O2 but fails with -Os. + +ld: dlls/winevulkan/vulkan.o: in function `fshack_vk_queue_present': +vulkan.c:(.text+0x12f46): undefined reference to `ceil' +--- a/dlls/winevulkan/Makefile.in ++++ b/dlls/winevulkan/Makefile.in +@@ -4,3 +4,3 @@ + IMPORTS = user32 gdi32 advapi32 setupapi win32u +-UNIX_LIBS = -lwin32u $(PTHREAD_LIBS) ++UNIX_LIBS = -lm -lwin32u $(PTHREAD_LIBS) + diff --git a/app-emulation/wine-proton/wine-proton-7.0.6.ebuild b/app-emulation/wine-proton/wine-proton-7.0.6.ebuild index cdab45831b77..29b0e02ef24a 100644 --- a/app-emulation/wine-proton/wine-proton-7.0.6.ebuild +++ b/app-emulation/wine-proton/wine-proton-7.0.6.ebuild @@ -124,6 +124,7 @@ PATCHES=( "${FILESDIR}"/${PN}-7.0.4-restore-menubuilder.patch "${FILESDIR}"/${PN}-7.0.4-unwind.patch "${FILESDIR}"/${PN}-7.0.6-mingw64-11.0.0.patch + "${FILESDIR}"/${PN}-7.0.6-vulkan-libm.patch ) pkg_pretend() { diff --git a/app-emulation/wine-proton/wine-proton-8.0.5c.ebuild b/app-emulation/wine-proton/wine-proton-8.0.5c.ebuild index 83417e7c34f7..cecd79a0c1f7 100644 --- a/app-emulation/wine-proton/wine-proton-8.0.5c.ebuild +++ b/app-emulation/wine-proton/wine-proton-8.0.5c.ebuild @@ -124,6 +124,7 @@ PATCHES=( "${FILESDIR}"/${PN}-7.0.4-noexecstack.patch "${FILESDIR}"/${PN}-8.0.1c-unwind.patch "${FILESDIR}"/${PN}-8.0.4-restore-menubuilder.patch + "${FILESDIR}"/${PN}-8.0.5c-vulkan-libm.patch ) pkg_pretend() { diff --git a/app-emulation/wine-proton/wine-proton-9.0.1.ebuild b/app-emulation/wine-proton/wine-proton-9.0.1.ebuild index 1dd72b877060..227f0cf4916a 100644 --- a/app-emulation/wine-proton/wine-proton-9.0.1.ebuild +++ b/app-emulation/wine-proton/wine-proton-9.0.1.ebuild @@ -134,6 +134,7 @@ PATCHES=( "${FILESDIR}"/${PN}-7.0.4-noexecstack.patch "${FILESDIR}"/${PN}-8.0.1c-unwind.patch "${FILESDIR}"/${PN}-8.0.4-restore-menubuilder.patch + "${FILESDIR}"/${PN}-8.0.5c-vulkan-libm.patch "${FILESDIR}"/${PN}-9.0-rpath.patch ) diff --git a/app-emulation/wine-proton/wine-proton-9.0.9999.ebuild b/app-emulation/wine-proton/wine-proton-9.0.9999.ebuild index f43dad37ae8e..caa389a5712f 100644 --- a/app-emulation/wine-proton/wine-proton-9.0.9999.ebuild +++ b/app-emulation/wine-proton/wine-proton-9.0.9999.ebuild @@ -134,6 +134,7 @@ PATCHES=( "${FILESDIR}"/${PN}-7.0.4-noexecstack.patch "${FILESDIR}"/${PN}-8.0.1c-unwind.patch "${FILESDIR}"/${PN}-8.0.4-restore-menubuilder.patch + "${FILESDIR}"/${PN}-8.0.5c-vulkan-libm.patch "${FILESDIR}"/${PN}-9.0-rpath.patch ) |