diff options
-rw-r--r-- | mkspecs/features/ios/qt.prf | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/mkspecs/features/ios/qt.prf b/mkspecs/features/ios/qt.prf index f89cb0c287..79bc9a8f46 100644 --- a/mkspecs/features/ios/qt.prf +++ b/mkspecs/features/ios/qt.prf @@ -27,13 +27,9 @@ equals(TEMPLATE, app):contains(QT, gui(-private)?) { # get rid of this step completely and just pass -e _qtmn to the # linker, taking advantage of the new LC_MAIN load command. - # We use xcodebuild to resolve the location of the crt1 object file - # as we know that it lives in the same location as the c library. - c_library_path = $$system("/usr/bin/xcodebuild -sdk $$QMAKE_MAC_SDK -find-library c 2>/dev/null") - - # We also know that iOS 3.1 and up uses crt1.3.1.o (technically not + # We know that iOS 3.1 and up uses crt1.3.1.o (technically not # true for simulator, but the SDK has a symlink to the correct file). - original_crt_path = $$dirname(c_library_path)/crt1.3.1.o + original_crt_path = "$(SDK_DIR)/usr/lib/crt1.3.1.o" xcode_objects_path = "$(OBJECT_FILE_DIR_$(CURRENT_VARIANT))/$(CURRENT_ARCH)" custom_crt_filename = "crt1_qt.o" |