summaryrefslogtreecommitdiff
path: root/app-emulation/wine-staging/files/wine-staging-8.13-rpath.patch
blob: 5f0d63b0ec33d77809485d9ebff686a171297eea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Patch Source: https://gitlab.alpinelinux.org/alpine/aports/-/blob/master/community/wine/rpath.patch
Alpine Bug: https://gitlab.alpinelinux.org/alpine/aports/-/issues/13249

--- a/configure.ac
+++ b/configure.ac
@@ -784,6 +784,9 @@ case $host_os in
                         [WINELOADER_LDFLAGS="$WINELOADER_LDFLAGS -Wl,-z,max-page-size=0x1000"])
         ;;
     esac
+
+    # do this at the end because it needs double dollar for makefile
+    WINE_TRY_CFLAGS([-Wl,-rpath,\\\$ORIGIN],[UNIXLDFLAGS="$UNIXLDFLAGS '-Wl,-rpath,\$\$ORIGIN'"])
     ;;
 esac