--- a/m4/qt.m4
+++ b/m4/qt.m4
@@ -59,7 +59,7 @@
     qtlibdir=`"$PKG_CONFIG" --variable libdir Qt5Core`
     if test -n "$qtlibdir"; then
       if test "$enable_rpath" != "no"; then
-        PINENTRY_QT_LDFLAGS="$PINENTRY_QT_LDFLAGS -Wl,-rpath \"$qtlibdir\""
+        PINENTRY_QT_LDFLAGS="$PINENTRY_QT_LDFLAGS"
       fi
     fi
 
