autoconf
[Top][All Lists]
Advanced

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

Re: Default CGFLAGS


From: Ondrej Jombik
Subject: Re: Default CGFLAGS
Date: Mon, 5 Jan 2004 12:45:21 +0100 (CET)

On Sat, 3 Jan 2004, Scott James Remnant wrote:

> On Thu, 2004-01-01 at 16:20, Ondrej Jombik wrote:
> > I want to ask autoconf advanced users and/or maintainers, if there is
> > a way how to define default CFLAGS for an application. These default
> > CFLAGS has to be used, when CFLAGS are empty during ./confgiure run.
> Before your call to AC_PROG_CC:
> CFLAGS=${CFLAGS-"-some -other -cflags"}
> The user can still call ./configure CFLAGS="" to override your defaults.

Thank you for your answer. It looks like smart solution, what is exactly
what I want, but it does not work anyway. :-(

It seems, that even if CFLAGS are not specified on the command line,
they are defined in the place of CFLAGS=${CFLAGS-"-some -other -cflags"}
with default value "-O2 -Wall". I do not know where these come from, but
I suppose these are some "autoconf" defaults. It is possible to change
these defaults?

Thanks,

Nepto

--
  _/|   Ondrej Jombik - address@hidden - http://nepto.sk - ICQ #122428216
 <_  \  Platon SDG - open source software development - http://platon.sk
   `\|  UNIX is user friendly. It's selective about who its friends are!
    '`




reply via email to

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