autoconf-patches
[Top][All Lists]
Advanced

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

Re: AC_INIT seems to be setting CXXFLAGS


From: Eric Blake
Subject: Re: AC_INIT seems to be setting CXXFLAGS
Date: Thu, 25 Feb 2010 14:57:57 -0700
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.23) Gecko/20090812 Thunderbird/2.0.0.23 Mnenhy/0.7.6.666

According to Paolo Bonzini on 7/31/2009 1:09 AM:
>> So I'm left doing what I posted earlier and setting CXXFLAGS to "" if
>> the user hasn't set it at ./configure time, since there is no other
>> option to say "hey, um, thanks! but I don't really want you to add -g
>> -O2 to my flags"
> 
> That's okay.  Doing simply
> 
> : ${CXXFLAGS=""}
> 
> right after AC_INIT is fine.  So is setting CXXFLAGS to "-O1 -g" if your
> program doesn't like being compiled at -O2.
> 
> I'm not a native speaker (and the only native-speaking Autoconf
> developer is gone for two weeks), so suggestions on how to phrase this
> in the documentation are very welcome.

2 weeks turned into 7 months.  Sorry for not replying to this thread
sooner.  I like Paolo's suggestion of documenting that it is acceptable to
change the default CXXFLAGS if the package author doesn't like autoconf's
default, without penalizing the user's ability to specify better arguments
than the package default.  How does this wording look?

-- 
Eric Blake   address@hidden    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

Attachment: autoconf.patch254
Description: Text document

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

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