Revert "Remove the LIBS from platformsupport"
authorSamuel Rødal <samuel.rodal@nokia.com>
Tue, 20 Mar 2012 08:17:18 +0000 (09:17 +0100)
committerQt by Nokia <qt-info@nokia.com>
Tue, 20 Mar 2012 13:43:45 +0000 (14:43 +0100)
This reverts commit cd6e90c70ac13065257422088ffa01537ed9c685.

Prevent symbol lookup error when requesting alpha visuals with GLX in
the xcb plugin. This means other plugins will also link against
-lXrender, but we need this workaround for now.

Change-Id: I2fd2c63bc577c2497060a555c91d72337723b931
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
Reviewed-by: Jørgen Lind <jorgen.lind@nokia.com>
src/platformsupport/glxconvenience/glxconvenience.pri
src/platformsupport/udev/udev.pri

index 6915f8d..3632f45 100644 (file)
@@ -1,5 +1,6 @@
 contains(QT_CONFIG,xlib):contains(QT_CONFIG,xrender) {
     contains(QT_CONFIG,opengl):!contains(QT_CONFIG,opengles2) {
+        LIBS += $$QMAKE_LIBS_X11 -lXrender
         HEADERS += $$PWD/qglxconvenience_p.h
         SOURCES += $$PWD/qglxconvenience.cpp
     }
index e22be2c..c00fa72 100644 (file)
@@ -3,4 +3,5 @@ contains(QT_CONFIG, libudev) {
     SOURCES += $$PWD/qudevicehelper.cpp
 
     INCLUDEPATH += $$QMAKE_INCDIR_LIBUDEV
+    LIBS += -ludev
 }