[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-teseq] AM_CFLAGS
From: |
Micah Cowan |
Subject: |
Re: [Bug-teseq] AM_CFLAGS |
Date: |
Wed, 06 Aug 2008 10:26:13 -0700 |
User-agent: |
Thunderbird 2.0.0.16 (X11/20080707) |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Bruno Haible wrote:
> Hi Micah,
>
> This line in Makefile.am
>
> AM_CFLAGS=-Wall -g -O2 -ansi -pedantic-errors
>
> yields two problems:
>
> 1) It will non-gcc compilers make err out.
>
> 2) It makes it impossible to debug without modifying the Makefile.
> I used
> $ ./configure CPPFLAGS="-g -Wall" CFLAGS= --prefix=/packages/gnu
> (with the intent of debugging) and then see the files compiled with -O2
> nevertheless.
What about "make CFLAGS=" ?
Hm, the intention was to pick a set of defaults that could be
overridden. Is there a better way to accomplish this? ...I see now that
AM_CFLAGS is the opposite of overridable, giving a set of flags to add
in addition to user-specified CFLAGS. Of course, when I used CFLAGS by
itself, automake gave a warning and told me to use AM_CFLAGS instead :p
I'll look into the problem. If need be, I'll keep my personal CFLAGS
preferences separated to my own configure process.
Thanks Bruno!
- --
Micah J. Cowan
Programmer, musician, typesetting enthusiast, gamer.
GNU Maintainer: wget, screen, teseq
http://micah.cowan.name/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFImd617M8hyUobTrERAhtFAKCHUz0MX1ff3yIUO/rbemIYcU/oHACgjuYF
4q6gEPZNAhOIqX+btM7nhVA=
=xzjD
-----END PGP SIGNATURE-----