Ticket #3589: patch_release-dbg.2.diff

File patch_release-dbg.2.diff, 1.3 KB (added by rd.mora@…, 14 years ago)

Updated version of previous patch

  • configure

     
    5757  echo "Standard options:"
    5858  echo "  --help                   print this message"
    5959  echo "  --previous               use previous configure parameters if possible"
    60   echo "  --compile-type=CTYPE     one of release, profile, debug [$compile_type]"
     60  echo "  --compile-type=CTYPE     one of release, release-dbg, profile, debug [$compile_type]"
    6161  echo "                           NOTE: profile is for sampling profilers"
    6262  echo "  --prefix=PREFIX          install in PREFIX [$PREFIX]"
    6363  echo "  --libdir-name=LIBNAME    search/install libraries in PREFIX/LIBNAME [$libdir_name]"
  • settings.pro

     
    104104EXTRA_LIBS += $$CONFIG_OPENGL_LIBS
    105105
    106106LIRC_LIBS = $$CONFIG_LIRC_LIBS
     107
     108release-dbg: {
     109unix:QMAKE_CXXFLAGS += -g
     110unix:QMAKE_POST_LINK=objcopy --only-keep-debug $(TARGET) $(TARGET).dbg;
     111unix:QMAKE_POST_LINK+=objcopy --strip-debug $(TARGET);
     112unix:QMAKE_POST_LINK+=objcopy --remove-section=.gnu_debuglink $(TARGET);
     113unix:QMAKE_POST_LINK+=objcopy --add-gnu-debuglink=$(TARGET).dbg $(TARGET)
     114}