autoconf
[Top][All Lists]
Advanced

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

Re: debug builds with NO optimizations


From: Brian Dessent
Subject: Re: debug builds with NO optimizations
Date: Mon, 06 Feb 2006 19:11:50 -0800

Bob Rossi wrote:

> Just out of curiosity, is this different than 'CFLAGS=-g ./configure
> ...'? I do this all the time and wonder if your way is somehow better.

If you happen to run into a package using older 2.13 autoconf, you have
to use the "CFLAGS=foo ./configure".  Otherwise you get this:

$ ./configure CFLAGS=-O2
configure: warning: CFLAGS=-O2: invalid host type
creating cache ./config.cache
checking host system type... Invalid configuration `CFLAGS=-O2': machine
`CFLAGS=' not recognized
checking target system type... Invalid configuration `CFLAGS=-O2':
machine `CFLAGS=' not recognized
checking build system type... Invalid configuration `CFLAGS=-O2':
machine `CFLAGS=' not recognized

Now before you scream that 2.13 is ancient, it still used in lots of
places for whatever reason.  The above example was from running the
toplevel configure script on the sourceware.org 'src' tree (which is
home to binutils, gcc, newlib, cygwin, gdb, and many others.)  Toplevel
is still stuck at 2.13 even though many subdirs have switched to modern
autoconf.

The "configure VAR=value" is the modern way but it breaks on older
versions, so "VAR=value configure" is easier to tell someone in an email
and expect it to work.

Brian




reply via email to

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