qt-4.7.0: Use qmake feature to link with -rpath-link.
authorHolger Hans Peter Freyther <zecke@selfish.org>
Sun, 26 Sep 2010 16:43:53 +0000 (00:43 +0800)
committerHolger Hans Peter Freyther <zecke@selfish.org>
Tue, 28 Sep 2010 10:54:23 +0000 (18:54 +0800)
This is instructing qmake to use the QMAKE_LFLAGS_RPATH for the
lib directory in the build tree. It should be safe to use even
for software using the resulting qmake.

recipes/qt4/qt-4.7.0/g++.conf

index 266a69f..80f925c 100644 (file)
@@ -53,5 +53,8 @@ QMAKE_PCH_OUTPUT_EXT    = .gch
 QMAKE_LFLAGS_BSYMBOLIC_FUNC = -Wl,-Bsymbolic-functions
 QMAKE_LFLAGS_DYNAMIC_LIST = -Wl,--dynamic-list,
 
+# some linking helper...
+CONFIG += rpath_libdirs
+
 # for the SDK
 isEmpty(QMAKE_QT_CONFIG):QMAKE_QT_CONFIG = $(OE_QMAKE_QT_CONFIG)