From cdec3b376fc75b23ad6a4fe0b0d2fb6c8dcb5121 Mon Sep 17 00:00:00 2001 From: Harald Fernengel Date: Tue, 13 Mar 2012 20:51:00 +0100 Subject: Use the LSB linker to link 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 --- mkspecs/linux-lsb-g++/qmake.conf | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'mkspecs/linux-lsb-g++/qmake.conf') diff --git a/mkspecs/linux-lsb-g++/qmake.conf b/mkspecs/linux-lsb-g++/qmake.conf index 4335f5ae91..c486534b87 100644 --- a/mkspecs/linux-lsb-g++/qmake.conf +++ b/mkspecs/linux-lsb-g++/qmake.conf @@ -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 -- cgit v1.2.3