diff options
author | Arvid Ephraim Picciani <arvid.picciani@nokia.com> | 2010-09-10 12:45:28 (GMT) |
---|---|---|
committer | Arvid Ephraim Picciani <arvid.picciani@nokia.com> | 2010-09-10 13:55:13 (GMT) |
commit | d03082dfa2140ebc0d7988e52d29ed06f7698bc2 (patch) | |
tree | 83c08355859717390f192297d6f6898b918a2c06 /mkspecs/features | |
parent | f2f6330d915cbe3d0989ad280738ed0a6954cd35 (diff) | |
download | Qt-d03082dfa2140ebc0d7988e52d29ed06f7698bc2.zip Qt-d03082dfa2140ebc0d7988e52d29ed06f7698bc2.tar.gz Qt-d03082dfa2140ebc0d7988e52d29ed06f7698bc2.tar.bz2 |
test for gdb version before runnning dwarf indexing
Reviewed-by: ossi
Diffstat (limited to 'mkspecs/features')
-rw-r--r-- | mkspecs/features/unix/gdb_dwarf_index.prf | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/mkspecs/features/unix/gdb_dwarf_index.prf b/mkspecs/features/unix/gdb_dwarf_index.prf index 264edc2..e2167a6 100644 --- a/mkspecs/features/unix/gdb_dwarf_index.prf +++ b/mkspecs/features/unix/gdb_dwarf_index.prf @@ -1,6 +1,7 @@ !CONFIG(separate_debug_info):CONFIG(debug, debug|release):!staticlib:!static:!contains(TEMPLATE, subdirs):!isEmpty(QMAKE_OBJCOPY) { QMAKE_GDB_INDEX = { test -z \"$(DESTDIR)\" || cd \"$(DESTDIR)\"; } && \ + test \$\$(gdb --version | sed -e \'s,[^(]*(GDB).\\([0-9]\\)\\.\\([0-9]\\).*,\\1\\2,;q\') -gt 71 && \ gdb --nx --batch --quiet -ex \'set confirm off\' -ex \'save gdb-index .\' -ex quit \'$(TARGET)\' && \ test -f $(TARGET).gdb-index && \ $$QMAKE_OBJCOPY --add-section \'.gdb_index=$(TARGET).gdb-index\' --set-section-flags \'.gdb_index=readonly\' \'$(TARGET)\' \'$(TARGET)\' && \ |