Ticket #3589: updated_release_dbg.diff
File updated_release_dbg.diff, 2.7 KB (added by , 14 years ago) |
---|
-
settings.pro
104 104 EXTRA_LIBS += $$CONFIG_OPENGL_LIBS 105 105 106 106 LIRC_LIBS = $$CONFIG_LIRC_LIBS 107 108 release-dbg: { 109 unix:QMAKE_CXXFLAGS += -g 110 unix:QMAKE_POST_LINK=objcopy --only-keep-debug $(TARGET) $(TARGET).dbg; 111 unix:QMAKE_POST_LINK+=objcopy --strip-debug $(TARGET); 112 unix:QMAKE_POST_LINK+=objcopy --remove-section=.gnu_debuglink $(TARGET); 113 unix:QMAKE_POST_LINK+=objcopy --add-gnu-debuglink=$(TARGET).dbg $(TARGET); 114 unix:QMAKE_POST_LINK+=chmod -x $(TARGET).dbg 115 } -
configure
58 58 echo " --help print this message" 59 59 #echo " --log[=FILE|yes|no] log tests and output to FILE [config.err]" 60 60 echo " --previous use previous configure parameters if possible" 61 echo " --compile-type=CTYPE one of release, profile, debug [$compile_type]"61 echo " --compile-type=CTYPE one of release, release-dbg, profile, debug [$compile_type]" 62 62 echo " NOTE: profile is for sampling profilers" 63 63 echo " --prefix=PREFIX install in PREFIX [$PREFIX]" 64 64 echo " --libdir-name=LIBNAME search/install libraries in PREFIX/LIBNAME [$libdir_name]" … … 1657 1657 expr $HAS_IT : "yes" > /dev/null 1658 1658 } 1659 1659 1660 if test x$compile_type = x"release-dbg" ; then 1661 BINUTILS_MAJOR=0 1662 BINUTILS_MINOR=0 1663 if test -e "$(which objcopy)"; then 1664 BINUTILS_MAJOR=$(objcopy -V | awk '/GNU objcopy/ {print $3}' | awk -F'.' '{print $1}') 1665 BINUTILS_MINOR=$(objcopy -V | awk '/GNU objcopy/ {print $3}' | awk -F'.' '{print $2}') 1666 fi 1667 if test $BINUTILS_MAJOR -lt 2 -o $BINUTILS_MAJOR -eq 2 -a $BINUTILS_MINOR -lt 15; then 1668 echo 'WARNING: "release-dbg" requires binutils > 2.14 - reverting to compile-type "profile"' 1669 compile_type="profile" 1670 fi 1671 fi 1660 1672 CCONFIG="$CCONFIG $compile_type" 1661 1673 if test x$compile_type = x"profile" ; then 1662 1674 PROFILEFLAGS="-g -DNDEBUG" -
libs/libmythtv/filtermanager.cpp
69 69 QDir FiltDir(gContext->GetFiltersDir()); 70 70 QString Path; 71 71 72 FiltDir.setFilter(QDir::Files | QDir::Readable); 72 // dbg files will crash the app if loaded 73 FiltDir.setFilter(QDir::Files | QDir::Readable | QDir::Executable); 73 74 if (FiltDir.exists()) 74 75 { 75 76 QStringList LibList = FiltDir.entryList();