From 702bda5cc9138d31cfe6ed25ead2edfda1fa623d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tor=20Arne=20Vestb=C3=B8?= Date: Mon, 6 Jan 2014 15:06:01 +0100 Subject: iOS: Use in-place string renaming to rename main() instead of ld Processing the object file with ld strips away debug information for the main() function, resulting in the debugger not being able to break on specific lines of the function. It also causes issues when externing sybols in main's object file. We revert back to the approach of using the strings in-line in the object file (which is why we keep the name the same length, 'qtmn'). Task-number: QTBUG-35553 Change-Id: I8b0acee36f48ecfefa2e4fd008a842365713d985 Reviewed-by: Simon Hausmann --- mkspecs/macx-ios-clang/features/qt.prf | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'mkspecs/macx-ios-clang/features/qt.prf') diff --git a/mkspecs/macx-ios-clang/features/qt.prf b/mkspecs/macx-ios-clang/features/qt.prf index 9202a70a5a..04ebb1208a 100644 --- a/mkspecs/macx-ios-clang/features/qt.prf +++ b/mkspecs/macx-ios-clang/features/qt.prf @@ -42,12 +42,7 @@ equals(TEMPLATE, app):contains(QT, gui(-private)?) { !isEmpty(QMAKE_PRE_LINK): \ QMAKE_PRE_LINK += ";" - QMAKE_PRE_LINK += \ - "for f in $(find $${objects_dir} -name '*.o'); do" \ - "(nm $f | grep -q 'T _main' && cp $f $f.original" \ - "&& ld -r -alias _main _qt_main -unexported_symbol _main $f.original -o $f)" \ - "|| true" \ - "; done" + QMAKE_PRE_LINK += $$QMAKESPEC/rename_main.sh $${objects_dir} } } -- cgit v1.2.3