summarylogtreecommitdiffstats
path: root/0004-AUR-Copy-DLL-dependencies-of-32bit-libvkd3d-dlls-int.patch
diff options
context:
space:
mode:
authorStelios Tsampas2023-07-12 03:24:18 +0300
committerStelios Tsampas2023-07-12 03:24:18 +0300
commit1e8ecaf748e7b580d41d6bde65cd5dd218ba0a51 (patch)
tree80cf4af8738e17a3fbc1a06cc5c0a18949598bda /0004-AUR-Copy-DLL-dependencies-of-32bit-libvkd3d-dlls-int.patch
parent58a153d770e80cbee5b95f0546cfe7585fef3c2b (diff)
downloadaur-1e8ecaf748e7b580d41d6bde65cd5dd218ba0a51.tar.gz
[proton-ge-custom] Fix 32bit libvkd3d dll dependencies
Diffstat (limited to '0004-AUR-Copy-DLL-dependencies-of-32bit-libvkd3d-dlls-int.patch')
-rw-r--r--0004-AUR-Copy-DLL-dependencies-of-32bit-libvkd3d-dlls-int.patch40
1 files changed, 40 insertions, 0 deletions
diff --git a/0004-AUR-Copy-DLL-dependencies-of-32bit-libvkd3d-dlls-int.patch b/0004-AUR-Copy-DLL-dependencies-of-32bit-libvkd3d-dlls-int.patch
new file mode 100644
index 000000000000..ee22a0faf226
--- /dev/null
+++ b/0004-AUR-Copy-DLL-dependencies-of-32bit-libvkd3d-dlls-int.patch
@@ -0,0 +1,40 @@
+From ac21f36388b980259efc017944c606457c8e990e Mon Sep 17 00:00:00 2001
+From: Stelios Tsampas <loathingkernel@gmail.com>
+Date: Wed, 12 Jul 2023 03:16:34 +0300
+Subject: [PATCH 4/4] AUR Copy DLL dependencies of 32bit libvkd3d dlls into the
+ correct location in the prefix
+
+For some unknown to me reason, 32bit vkd3d (not vkd3d-proton) always links
+to libgcc_s_dw2-1.dll no matter what linker options I tried.
+
+The required dlls into the package next to vkd3d, they will be copied later into the prefix
+by the patched proton script. Bundling the helps to avoid making mingw-w64-gcc package
+a runtime dependency.
+
+ DLL Name: libgcc_s_dw2-1.dll
+ vma: Hint/Ord Member-Name Bound-To
+ 6a4b4 121 __udivdi3
+ 6a4c0 123 __umoddi3
+---
+ proton | 5 +++++
+ 1 file changed, 5 insertions(+)
+
+diff --git a/proton b/proton
+index c581144f..695ea10f 100755
+--- a/proton
++++ b/proton
+@@ -1083,6 +1083,11 @@ class CompatData:
+ prefix=self.prefix_dir, track_file=tracked_files, link_debug=True)
+ try_copy(g_proton.lib_dir + "vkd3d/libvkd3d-shader-1.dll", "drive_c/windows/syswow64",
+ prefix=self.prefix_dir, track_file=tracked_files, link_debug=True)
++ #copy the DLL dependencies for 32 bit libraries
++ try_copy(g_proton.lib_dir + "vkd3d/libgcc_s_dw2-1.dll", "drive_c/windows/syswow64",
++ prefix=self.prefix_dir, track_file=tracked_files, link_debug=True)
++ try_copy(g_proton.lib_dir + "vkd3d/libwinpthread-1.dll", "drive_c/windows/syswow64",
++ prefix=self.prefix_dir, track_file=tracked_files, link_debug=True)
+
+ if use_wined3d:
+ dxvkfiles = []
+--
+2.41.0
+