Use the LSB linker to link
authorHarald Fernengel <harald.fernengel@nokia.com>
Tue, 13 Mar 2012 19:51:00 +0000 (20:51 +0100)
committerQt by Nokia <qt-info@nokia.com>
Wed, 14 Mar 2012 23:50:47 +0000 (00:50 +0100)
Fixes those cases where things would magically link, although they were
everything but LSB compliant.

Also fix a linker error, it seems we need to explicitly link to -lrt,
otherwise, the non-LSB compliant system lib will be taken into account.

Change-Id: I40e278f1c4d2e02084c4c5f15b9bbff8c5901d32
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
mkspecs/linux-lsb-g++/qmake.conf

index 4335f5a..c486534 100644 (file)
@@ -14,6 +14,14 @@ include(../common/gcc-base-unix.conf)
 include(../common/g++-unix.conf)
 load(qt_config)
 
+QMAKE_LIBS_THREAD      += -lrt
+
 QMAKE_LSB               = 1
 QMAKE_CC                = lsbcc
 QMAKE_CXX              = lsbc++
+
+QMAKE_LINK_C            = $$QMAKE_CC
+QMAKE_LINK_C_SHLIB      = $$QMAKE_CC
+
+QMAKE_LINK              = $$QMAKE_CXX
+QMAKE_LINK_SHLIB        = $$QMAKE_CXX