[Freeipa-devel] [PATCH][SSSD] Allow the use of custom CFLAGS on the make command line

Stephen Gallagher sgallagh at redhat.com
Fri Jun 19 11:14:16 UTC 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 06/18/2009 04:01 PM, Simo Sorce wrote:
> On Thu, 2009-06-18 at 11:32 -0400, Stephen Gallagher wrote:
>> Setting CFLAGS explicitly in configure.ac means that they would be
>> overwritten when using e.g. make CFLAGS="-O0 -g"
>> This replaces the explicit setting of CFLAGS with an
>> AM_CONDITIONAL to have Makefile.am set these instead.
> 
> I would lean to think that being able to override the default CFLAGS
> with make CFLAGS="-O0 -g" is a feature not a bug.
> Is it not ?
> 
> Simo.
> 
I think you missed the point of this. That's the feature I was adding :)
What it was doing before this point was replacing the following CFLAGS
as well:
- -Wall -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-qual
- -Wcast-align -Wwrite-strings

Now the CFLAGS= argument to make will append to those (overriding any
conflicting ones such as -O2).

- -- 
Stephen Gallagher
RHCE 804006346421761

Looking to carve out IT costs?
www.redhat.com/carveoutcosts/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/

iEYEARECAAYFAko7cwQACgkQeiVVYja6o6PTxACgnculeLsF0ZaNEwHLQwsQEl+v
E4oAoJl5iR49Ia2VPMkqSY25Sumhzedf
=XkaR
-----END PGP SIGNATURE-----




More information about the Freeipa-devel mailing list