For Programmers: Free Programming Magazines  


Home > Archive > Unix Programming > June 2005 > Re: How to get rid of -O2 in the Makefile generated by automake &









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: How to get rid of -O2 in the Makefile generated by automake &
Russell Shaw

2005-06-01, 3:57 am

Haihui Guo wrote:
> Hi:
>
> I just have this problem and can't figure out how to get rid of this
> -O2 compiler argument in the Makefile.
> Is there any place I can make a declaration in Makefile.am, so it won't
> appear in my real Makefile.
>
> Thanks


That is a user settable optimization, so shouldn't be hardcoded.

When you run automake, pass on its command line: CFLAGS="-g -O0"
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com