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)