Hi!
> Thanks. And I have another little question about debug ltp. When I hit this
> segfault I got a core file, but that core without debug information.
> So I tried to add "-g" for gcc and remove "-O2" option. I did that
> job manually(deleted -O2 from every files contain it).
> 
> Is there some good configure or make options can be used to build a
>  debug version ltp? Can you give me some steps to do that?

Hm, passing CFLAGS to configure should work as:

CFLAGS="-W -Wextra -O0 -ggdb" ./configure

But looking at what we have in LTP there are OPT_CFLAGS and WCFLAGS
which adds the -O2 and more. So at the moment you have to modify CFLAGS
manually in the include/mk/config.mk.

Does anybody have an idea why the CFLAGS are split among three variables
to optimizations and warnings? It does no make much sense to me. There
is only one place in the source tree where these are redefined, I will
check if that is really needed and possibly get rid of this mess. Is
anybody opposed?

-- 
Cyril Hrubis
chru...@suse.cz

------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to