Re: How to avoid C compiler using -g

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

 



On Thu, Mar 04, 2004 at 05:20:34PM +0100, Jose Roman Bilbao wrote:
> Hi all,
> 
> I have noticed that, by default, the C compiler is using flag -g. What
> should I indicate in configure.ac to avoid this issue?.
> 
> Thanks
> 

You could always rewrite the CFLAGS.

if test -n "$GCC"; then
  CFLAGS="-02" 
fi
AC_SUBST(CFLAGS)

NOTE: this snippet was untested.

-- 
#include <stdio.h>
int main(){int a[]={74,117,115,116,32,97,110,111,116,104,101,114,32, \
67,32,104,97,99,107,101,114,10,0}; int *b=a;while(*b>0)putchar(*b++);}



[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux