summaryrefslogtreecommitdiff
path: root/user/wine/rpath.patch
blob: 9f65cf0341eb39de306df3f2c5083170e0f91372 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
--- a/configure.ac
+++ b/configure.ac
@@ -859,6 +859,9 @@ case $host_os in
     AC_SUBST(LIBWINE_SHAREDLIB,"libwine.so.$libwine_version")
     AC_SUBST(LIBWINE_DEPENDS,"wine.map")
     TOP_INSTALL_LIB="$TOP_INSTALL_LIB libs/wine/libwine.so.$libwine_version libs/wine/libwine.so.$libwine_soversion"
+
+    # do this at the end because it needs double dollar for makefile
+    WINE_TRY_CFLAGS([-Wl,-rpath,\\\$ORIGIN],[UNIXLDFLAGS="$UNIXLDFLAGS '-Wl,-rpath,\$\$ORIGIN'"])
     ;;
 esac