From 99e489c191557e319d923e0a5ea7276e85742550 Mon Sep 17 00:00:00 2001 From: Tim Jenssen Date: Tue, 12 Jun 2012 15:07:30 +0200 Subject: fix openpty static link problem - as the linker only adds symbols which are needed, the order of the libraries are important Change-Id: Iad8e5a5015cc5949be9b8f0b01702a7f854f6d95 Reviewed-by: Rainer Keller Reviewed-by: Jason McDonald --- installerfw.pri | 2 ++ src/sdk/sdk.pro | 1 - tools/archivegen/archivegen.pro | 1 - tools/binarycreator/binarycreator.pro | 1 - tools/repogen/repogen.pro | 1 - 5 files changed, 2 insertions(+), 4 deletions(-) diff --git a/installerfw.pri b/installerfw.pri index 2d1915ec6..86618d6d3 100644 --- a/installerfw.pri +++ b/installerfw.pri @@ -46,6 +46,8 @@ win32:INCLUDEPATH += $$IFW_SOURCE_TREE/src/libs/7zip/win/CPP unix:INCLUDEPATH += $$IFW_SOURCE_TREE/src/libs/7zip/unix/CPP LIBS += -L$$IFW_LIB_PATH +# The order is important. The linker needs to parse archives in reversed dependency order. +equals(TEMPLATE, app):LIBS += -linstaller unix:!macx:LIBS += -lutil macx:LIBS += -framework Carbon -framework Security diff --git a/src/sdk/sdk.pro b/src/sdk/sdk.pro index 7ca88ef93..3cf5b6c64 100644 --- a/src/sdk/sdk.pro +++ b/src/sdk/sdk.pro @@ -5,7 +5,6 @@ TARGET = installerbase include(../../installerfw.pri) -LIBS += -linstaller QT += network script CONFIG -= app_bundle diff --git a/tools/archivegen/archivegen.pro b/tools/archivegen/archivegen.pro index ff9fdbd59..886a9856e 100644 --- a/tools/archivegen/archivegen.pro +++ b/tools/archivegen/archivegen.pro @@ -7,7 +7,6 @@ include(../../installerfw.pri) QT -= gui QT += script -LIBS += -linstaller CONFIG += console CONFIG -= app_bundle diff --git a/tools/binarycreator/binarycreator.pro b/tools/binarycreator/binarycreator.pro index 706318ebc..2e36e1575 100644 --- a/tools/binarycreator/binarycreator.pro +++ b/tools/binarycreator/binarycreator.pro @@ -7,7 +7,6 @@ include(../../installerfw.pri) QT -= gui QT += script -LIBS += -linstaller CONFIG += console CONFIG -= app_bundle diff --git a/tools/repogen/repogen.pro b/tools/repogen/repogen.pro index 5b6f0d03a..e4df1f56b 100644 --- a/tools/repogen/repogen.pro +++ b/tools/repogen/repogen.pro @@ -7,7 +7,6 @@ include(../../installerfw.pri) QT -= gui QT += script -LIBS += -linstaller CONFIG += console CONFIG -= app_bundle -- cgit v1.2.3