diff options
author | Rohan McGovern <rohan.mcgovern@nokia.com> | 2011-08-18 23:03:51 (GMT) |
---|---|---|
committer | Sergio Ahumada <sergio.ahumada@nokia.com> | 2011-08-26 21:26:59 (GMT) |
commit | 53794d94994cb3149581b1a91762dfa2d6defac0 (patch) | |
tree | 4cbc0c7af284cc37e6c68fa3d99887681ecf81e6 /src/plugins | |
parent | fe2da7c82f52e16b87569fe8ef3561014bc8c854 (diff) | |
download | Qt-53794d94994cb3149581b1a91762dfa2d6defac0.zip Qt-53794d94994cb3149581b1a91762dfa2d6defac0.tar.gz Qt-53794d94994cb3149581b1a91762dfa2d6defac0.tar.bz2 |
Do not unconditionally use pkg-config in .pro files
Using the first pkg-config in PATH is prone to errors when
cross compiling. This is a known issue, and `configure' already
avoids using pkg-config for cross compiling (unless -force-pkg-config is
used). However, there was previously no way for a .pro file to test
whether or not the user had passed -force-pkg-config.
Let !contains(QT_CONFIG, no-pkg-config) be used to test whether or not it
is safe to run pkg-config.
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/platforms/wayland/wayland.pro | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/platforms/wayland/wayland.pro b/src/plugins/platforms/wayland/wayland.pro index 5b20a87..cbd67ea 100644 --- a/src/plugins/platforms/wayland/wayland.pro +++ b/src/plugins/platforms/wayland/wayland.pro @@ -33,7 +33,7 @@ INCLUDEPATH += $$QMAKE_INCDIR_WAYLAND LIBS += $$QMAKE_LIBS_WAYLAND QMAKE_CXXFLAGS += $$QMAKE_CFLAGS_WAYLAND -!isEmpty(QMAKE_LFLAGS_RPATH) { +!isEmpty(QMAKE_LFLAGS_RPATH):!contains(QT_CONFIG, no-pkg-config) { WAYLAND_NEEDS_RPATH = $$system(pkg-config --libs-only-L wayland-client) !isEmpty(WAYLAND_NEEDS_RPATH) { !isEmpty(QMAKE_LIBDIR_WAYLAND):QMAKE_LFLAGS += $${QMAKE_LFLAGS_RPATH}$${QMAKE_LIBDIR_WAYLAND} |