$NetBSD: patch-aa,v 1.2 2006/02/28 18:02:47 adam Exp $

--- qmake/generators/unix/unixmake2.cpp.orig	2006-02-16 11:51:34.000000000 +0100
+++ qmake/generators/unix/unixmake2.cpp
@@ -1282,7 +1282,7 @@ UnixMakefileGenerator::writePkgConfigFil
     else
         libs << "QMAKE_LIBS"; //obvious one
     libs << "QMAKE_LFLAGS_THREAD"; //not sure about this one, but what about things like -pthread?
-    t << "Libs: -L${libdir} -l" << lname.left(lname.length()-Option::libtool_ext.length()) << " ";
+    t << "Libs: -Wl,-R${libdir} -L${libdir} -l" << lname.left(lname.length()-Option::libtool_ext.length()) << " ";
     for(QStringList::ConstIterator it = libs.begin(); it != libs.end(); ++it)
         t << project->variables()[(*it)].join(" ") << " ";
     t << endl;
