summaryrefslogtreecommitdiffstats
path: root/config.tests/qpa/eglfs-egldevice/eglfs-egldevice.pro
diff options
context:
space:
mode:
Diffstat (limited to 'config.tests/qpa/eglfs-egldevice/eglfs-egldevice.pro')
-rw-r--r--config.tests/qpa/eglfs-egldevice/eglfs-egldevice.pro9
1 files changed, 6 insertions, 3 deletions
diff --git a/config.tests/qpa/eglfs-egldevice/eglfs-egldevice.pro b/config.tests/qpa/eglfs-egldevice/eglfs-egldevice.pro
index 521a911219..d0945465a0 100644
--- a/config.tests/qpa/eglfs-egldevice/eglfs-egldevice.pro
+++ b/config.tests/qpa/eglfs-egldevice/eglfs-egldevice.pro
@@ -6,7 +6,10 @@ for(p, QMAKE_LIBDIR_EGL) {
INCLUDEPATH += $$QMAKE_INCDIR_EGL
LIBS += $$QMAKE_LIBS_EGL
-
-LIBS += -ldrm
-
+CONFIG += link_pkgconfig
+!contains(QT_CONFIG, no-pkg-config) {
+ PKGCONFIG += libdrm
+} else {
+ LIBS += -ldrm
+}
CONFIG -= qt