Re: Default CGFLAGS

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

 



Ondrej Jombik wrote:
[ Please CC me in the answer as I'm not in the list ]

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.

Try


./configure CFLAGS="what_you_want_to_define_as_cflags_defaults"

or put something like this somewhere at your configure.ac file (but
before checking headers...)



It seems, that autoconf detect, that CFLAGS is empty and add defaults "-O2 -Wall". I do not know where these come from, however I also do not know the name of AC macro, which can overide these defaults.

I searched web for solution of this problem, but without any success.

Thank you in advance,

Nepto

[ Please CC me in the answer as I'm not in the list ]

--
  _/|   Ondrej Jombik - nepto@xxxxxxx - http://nepto.sk - ICQ #122428216
 <_  \  Platon SDG - open source software development - http://platon.sk
   `\|  Nech operacia X na mnozine G tvori grupu, potom plati...  rundu!
    '`







--
 ---------------------------------------------------------------
 Jose Marcio MARTINS DA CRUZ           Tel. :(33) 01.40.51.93.41
 Ecole des Mines de Paris              http://j-chkmail.ensmp.fr
 60, bd Saint Michel                http://www.ensmp.fr/~martins
 75272 - PARIS CEDEX 06      mailto:Jose-Marcio.Martins@xxxxxxxx





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

  Powered by Linux