summaryrefslogtreecommitdiffstats
path: root/mkspecs/macx-ios-clang/features
diff options
context:
space:
mode:
Diffstat (limited to 'mkspecs/macx-ios-clang/features')
-rw-r--r--mkspecs/macx-ios-clang/features/qt.prf7
1 files changed, 1 insertions, 6 deletions
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}
}
}