Blame SOURCES/pinentry-1.1.1-rpath.patch

61de54
commit 6e8ad3150566d16a20cb3b54267191bcb0c14208
61de54
Author: Damien Goutte-Gattat <dgouttegattat@incenp.org>
61de54
Date:   Tue Feb 23 22:05:37 2021 +0000
61de54
61de54
    qt: Honor the --disable-rpath option.
61de54
    
61de54
    * m4/qt.m4: Do not set rpath if --disable-rpath has been specified
61de54
    at configure time.
61de54
    --
61de54
    
61de54
    GnuPG-bug-id: 5307
61de54
    Signed-off-by: Damien Goutte-Gattat <dgouttegattat@incenp.org>
61de54
61de54
diff --git a/m4/qt.m4 b/m4/qt.m4
61de54
index f8ef3f6..5f9de3f 100644
61de54
--- a/m4/qt.m4
61de54
+++ b/m4/qt.m4
61de54
@@ -59,7 +59,9 @@ AC_DEFUN([FIND_QT],
61de54
 
61de54
     qtlibdir=`"$PKG_CONFIG" --variable libdir Qt5Core`
61de54
     if test -n "$qtlibdir"; then
61de54
+      if test "$enable_rpath" != "no"; then
61de54
         PINENTRY_QT_LDFLAGS="$PINENTRY_QT_LDFLAGS -Wl,-rpath \"$qtlibdir\""
61de54
+      fi
61de54
     fi
61de54
 
61de54
     AC_CHECK_TOOL(MOC, moc)
61de54
61de54
diff -up pinentry-1.1.1/configure.rpath pinentry-1.1.1/configure
61de54
--- pinentry-1.1.1/configure.rpath	2021-04-16 09:08:48.306479991 +0200
61de54
+++ pinentry-1.1.1/configure	2021-04-16 09:09:29.365068549 +0200
61de54
@@ -10765,7 +10776,9 @@ fi
61de54
 
61de54
     qtlibdir=`"$PKG_CONFIG" --variable libdir Qt5Core`
61de54
     if test -n "$qtlibdir"; then
61de54
+      if test "$enable_rpath" != "no"; then
61de54
         PINENTRY_QT_LDFLAGS="$PINENTRY_QT_LDFLAGS -Wl,-rpath \"$qtlibdir\""
61de54
+      fi
61de54
     fi
61de54
 
61de54
     if test -n "$ac_tool_prefix"; then