On Fri, 13 Jul 2007, Joseph Wakeling wrote:

I don't know whether I need to do more than add -pg to the CFLAGS when
building the library or whether it's simply gprof I'm not using correctly.

It is important to know that profiling is based on both adding special code to functions during compilation (influenced by CFLAGS), and use of a special startup-module for linking. That means you should add -pg to LDFLAGS as well. Profiling will be easiest to deal with in a static build (might be a firm requirement). If adding -pg to LDFLAGS does not help, then it is quite possible that libtool itself has a bug. Watch to make sure that libtool is supplying this option to the linker (or compiler if it is used as the linker).

Bob
======================================
Bob Friesenhahn
[EMAIL PROTECTED], http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer,    http://www.GraphicsMagick.org/



_______________________________________________
http://lists.gnu.org/mailman/listinfo/libtool

Reply via email to