[mythtv] Profile options not correct?
Ian Dall
ian at beware.dropbear.id.au
Wed Apr 20 12:48:10 UTC 2005
I tried to build with --compile-type=profile and notices that the -g
flag is used, but not -p or -pg. Changing configure to set
PROFILEFLAGS="-pg -DNDEBUG"
is not quite enough, since -fomit-frame-pointer is incompatible with -pg.
I made the following change to settings.pro
--- settings.pro 10 Apr 2005 00:47:09 -0000 1.112
+++ settings.pro 20 Apr 2005 12:19:22 -0000
@@ -36,6 +36,7 @@
# Auto-inlining causes some Qt moc methods to go missing
macx:QMAKE_CXXFLAGS_RELEASE += -fno-inline-functions
}
+profile:QMAKE_CXXFLAGS_RELEASE = $$OPTFLAGS
QMAKE_CXXFLAGS_RELEASE += $$PROFILEFLAGS
QMAKE_CFLAGS += $$ARCHFLAGS
I'm not sure if this is the best solution. Is seems confusing to be
setting options in setttings.pro as well as configure.
Ian
More information about the mythtv-dev
mailing list