The old construct doesn't work if the QtBase source is unavailable.
Reviewed-by: Marius Storm-Olsen
include(rewriter/rewriter.pri)
include(v4/v4.pri)
-# mirrors logic in corelib/kernel/kernel.pri
-unix:!symbian: contains(QT_CONFIG, clock-gettime):include($$QT_SOURCE_TREE/config.tests/unix/clock-gettime/clock-gettime.pri)
+# clock_gettime() is implemented in librt on these systems
+contains(QT_CONFIG, clock-gettime) {
+ linux-*|hpux-*|solaris-*:LIBS_PRIVATE *= -lrt
+}