summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/wayland/wayland.pro
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/platforms/wayland/wayland.pro')
-rw-r--r--src/plugins/platforms/wayland/wayland.pro5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/plugins/platforms/wayland/wayland.pro b/src/plugins/platforms/wayland/wayland.pro
index dca72fd..5b20a87 100644
--- a/src/plugins/platforms/wayland/wayland.pro
+++ b/src/plugins/platforms/wayland/wayland.pro
@@ -34,7 +34,10 @@ LIBS += $$QMAKE_LIBS_WAYLAND
QMAKE_CXXFLAGS += $$QMAKE_CFLAGS_WAYLAND
!isEmpty(QMAKE_LFLAGS_RPATH) {
- !isEmpty(QMAKE_LIBDIR_WAYLAND):QMAKE_LFLAGS += $${QMAKE_LFLAGS_RPATH}$${QMAKE_LIBDIR_WAYLAND}
+ 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}
+ }
}
INCLUDEPATH += $$PWD