forked from qt-creator/qt-creator
Fix linking with the Intel Compiler for OS X
ICC does not understand the -sectcreate option. Since this is really just a linker option, use -Wl to pass it to the linker. This works with Clang too. Change-Id: I3edff1a856ba235a60984c745fc144b4046cad77 Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com> Reviewed-by: Fawzi Mohamed <fawzi.mohamed@theqtcompany.com>
This commit is contained in:
@@ -44,7 +44,7 @@ unix:!osx:LIBS += -lrt # posix shared memory
|
||||
|
||||
osx {
|
||||
CONFIG -= app_bundle
|
||||
QMAKE_LFLAGS += -sectcreate __TEXT __info_plist $$system_quote($$PWD/Info.plist)
|
||||
QMAKE_LFLAGS += -Wl,-sectcreate,__TEXT,__info_plist,$$system_quote($$PWD/Info.plist)
|
||||
} else {
|
||||
target.path = $$QTC_PREFIX/bin
|
||||
INSTALLS += target
|
||||
|
||||
@@ -29,7 +29,7 @@ unix:!macx:LIBS += -lrt # posix shared memory
|
||||
DISTFILES += Info.plist
|
||||
macx {
|
||||
CONFIG -= app_bundle
|
||||
QMAKE_LFLAGS += -sectcreate __TEXT __info_plist \"$$PWD/Info.plist\"
|
||||
QMAKE_LFLAGS += -Wl,-sectcreate,__TEXT,__info_plist,\"$$PWD/Info.plist\"
|
||||
} else {
|
||||
target.path = $$QTC_PREFIX/bin
|
||||
INSTALLS += target
|
||||
|
||||
2
src/tools/3rdparty/iossim/iossim.pro
vendored
2
src/tools/3rdparty/iossim/iossim.pro
vendored
@@ -11,7 +11,7 @@ include(../../../../qtcreator.pri)
|
||||
# Prevent from popping up in the dock when launched.
|
||||
# We embed the Info.plist file, so the application doesn't need to
|
||||
# be a bundle.
|
||||
QMAKE_LFLAGS += -sectcreate __TEXT __info_plist \"$$PWD/Info.plist\" \
|
||||
QMAKE_LFLAGS += -Wl,-sectcreate,__TEXT,__info_plist,\"$$PWD/Info.plist\"
|
||||
-fobjc-link-runtime
|
||||
|
||||
LIBS += \
|
||||
|
||||
@@ -10,7 +10,7 @@ include(../../../../qtcreator.pri)
|
||||
# Prevent from popping up in the dock when launched.
|
||||
# We embed the Info.plist file, so the application doesn't need to
|
||||
# be a bundle.
|
||||
QMAKE_LFLAGS += -sectcreate __TEXT __info_plist \"$$PWD/Info.plist\" \
|
||||
QMAKE_LFLAGS += -Wl,-sectcreate,__TEXT,__info_plist,\"$$PWD/Info.plist\" \
|
||||
-fobjc-link-runtime
|
||||
|
||||
LIBS += \
|
||||
|
||||
@@ -8,7 +8,7 @@ CONFIG += console
|
||||
# Prevent from popping up in the dock when launched.
|
||||
# We embed the Info.plist file, so the application doesn't need to
|
||||
# be a bundle.
|
||||
QMAKE_LFLAGS += -sectcreate __TEXT __info_plist \"$$PWD/Info.plist\"
|
||||
QMAKE_LFLAGS += -Wl,-sectcreate,__TEXT,__info_plist,\"$$PWD/Info.plist\"
|
||||
CONFIG -= app_bundle
|
||||
|
||||
LIBS += -framework CoreFoundation -framework CoreServices -framework IOKit -lssl -lbz2 -framework Security -framework SystemConfiguration
|
||||
|
||||
Reference in New Issue
Block a user