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
_______________________________________________
mythtv-dev mailing list
mythtv-dev@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev

Reply via email to