This is the mail archive of the automake@gnu.org mailing list for the automake project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: disable -g flag


JRBCAST wrote:
Hi,

I have been trying to disable the -g flag that autoconf uses when
compiling my GNU project. I have tried --enable-debug=no --disable-debug
and none works. I have had a look at google and some questions but no
response...

Can you help me?

my configure.ac is:

All the next just checks for external libraries.

autoconf defaults $CFLAGS if not set, and it includes -g if it finds the compiler supports it. The simple fix is to run:

$ ./configure {your options here} CFLAGS=-O

That way, autoconf will use -O instead of guessing you want "-g -O".




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]