automake
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

add '-pg' to compiler/linker


From: Steven Woody
Subject: add '-pg' to compiler/linker
Date: Fri, 11 Nov 2005 01:56:52 +0800
User-agent: Gnus/5.110004 (No Gnus v0.4) Emacs/21.4 (gnu/linux)

i have a main.cpp in top directory and some modules in sub-directories. each
module compiled as a .a library and the main.cpp staticly linked with those
.a's. it work no problem for compile/link.

but, now i want to add gprof capability to the resulting executable. so i add
'-pg' to _CXXFLAGS for each modules's Makefile.am as well as to the main
program's Makefile.am.  automake reported no error and produced an
executable. but after i run the executable, there is no .out profile
generated. so i think '-pg' flag has not take effect.

what's wroing with my steps?  thanks for your help.


-- 
steven woody (id: narke)

Virginia Woolf: You cannot find peace by avoiding life, Leonard.

        - The Hours (2002)





reply via email to

[Prev in Thread] Current Thread [Next in Thread]