From: Sebastian Lackner Subject: configure: Also add the absolute RPATH when linking against libwine. Message-Id: <5408198F.9080307@fds-team.de> Date: Thu, 04 Sep 2014 09:49:35 +0200 When setcap is used on the wine-preloader binary the relative RPATH is not interpreted correctly anymore (or intentionally ignored?), and bin/wine fails to find the correct version of libwine.so (except its in one of the default paths). By specifying a second absolute fallback RPATH this issue can be easily resolved. Fixes the "invalid" bug 26256. Needs autoreconf. --- configure.ac | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) From d39d120e7b69873b864286ec574c7b5c9eb1de0d Mon Sep 17 00:00:00 2001 From: Sebastian Lackner Date: Wed, 27 Aug 2014 00:31:23 +0200 Subject: configure: Also add the absolute RPATH when linking against libwine. --- configure.ac | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index c4066f6..1c5f156 100644 --- a/configure.ac +++ b/configure.ac @@ -970,10 +970,10 @@ wine-installed: main.o [LDEXECFLAGS="-Wl,--export-dynamic"]) WINE_TRY_CFLAGS([-fPIC -Wl,--rpath,\$ORIGIN/../lib], - [LDRPATH_INSTALL="-Wl,--rpath,\\\$\$ORIGIN/\`\$(MAKEDEP) -R \$(bindir) \$(libdir)\`" + [LDRPATH_INSTALL="-Wl,--rpath,\\\$\$ORIGIN/\`\$(MAKEDEP) -R \$(bindir) \$(libdir)\`:\$(DESTDIR)\$(libdir)" LDRPATH_LOCAL="-Wl,--rpath,\\\$\$ORIGIN/\$(top_builddir)/libs/wine"], [WINE_TRY_CFLAGS([-fPIC -Wl,-R,\$ORIGIN/../lib], - [LDRPATH_INSTALL="-Wl,-R,\\\$\$ORIGIN/\`\$(MAKEDEP) -R \$(bindir) \$(libdir)\`" + [LDRPATH_INSTALL="-Wl,-R,\\\$\$ORIGIN/\`\$(MAKEDEP) -R \$(bindir) \$(libdir)\`:\$(DESTDIR)\$(libdir)" LDRPATH_LOCAL="-Wl,-R,\\\$\$ORIGIN/\$(top_builddir)/libs/wine"])]) WINE_TRY_CFLAGS([-Wl,--enable-new-dtags], -- 1.7.9.5