summarylogtreecommitdiffstats
path: root/0004-AUR-Copy-DLL-dependencies-of-32bit-libvkd3d-dlls-int.patch
blob: a678df0e3174f27be3b6e40d27038cfa72614c4c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
From 2b1e97b11d1da980e11732ac88a0b0f4f4a281a8 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/6] 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 | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/proton b/proton
index 15fb2c1f..da945918 100755
--- a/proton
+++ b/proton
@@ -923,6 +923,15 @@ 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 mingw DLL dependencies for libvkd3d
+                try_copy(g_proton.lib64_dir + "vkd3d/libgcc_s_seh-1.dll", "drive_c/windows/system32",
+                        prefix=self.prefix_dir, track_file=tracked_files, link_debug=True)
+                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.lib64_dir + "vkd3d/libwinpthread-1.dll", "drive_c/windows/system32",
+                        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.45.2