autoconf
[Top][All Lists]
Advanced

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

Re: How to avoid C compiler using -g


From: Jeff Fulmer
Subject: Re: How to avoid C compiler using -g
Date: Mon, 8 Mar 2004 11:18:26 -0500

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++);}




reply via email to

[Prev in Thread] Current Thread [Next in Thread]