Hi,

On Tue, 2009-04-07 at 15:27 +0530, rohit verma wrote:
> There is a change in compilation mechanism in LTP from Feb 09
> distribution.The previous Make mechanism did not provide any
> optimization while compiling the fork05 test program and the test used
> to Pass . However the newer Makefile uses optimization level 2 while
> compiling, if this file is executed the test case fails ..
> 
> With Older Make mechanism
> cc -Wall  -I../../include -g -Wall -I../../../../include -Wall
> fork05.c  -L../../../../lib -lltp -o fork05
> 
> With Newer Make mechanism
> gcc -g -O2 -I../../include -g -Wall -I../../../../include -Wall
> fork05.c  -L../../../../lib -lltp -o fork05
> 
> Note: If we compile the program in the same
> directory(/testcases/kernel/syscalls/fork) ,the optimization flag do
> not come into picture and the test case passes. The optimization is
> set by some top level Makefile

It is set as:

CFLAGS = -g -02

inside ltp/config.mk

which is generated from config.mk.in during packing. You can very well
edit config.mk and remove that -02 and start compiling from the root
level make. Will work for you. And in future you can set/reset as per
your wish.

Regards--
Subrata

> 
> Regards,
> Rohit
> 
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by:
> High Quality Requirements in a Collaborative Environment.
> Download a free trial of Rational Requirements Composer Now!
> http://p.sf.net/sfu/www-ibm-com
> _______________________________________________
> Ltp-list mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/ltp-list


------------------------------------------------------------------------------
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to