Gentoo Logo
Gentoo Spaceship

Note: Due to technical difficulties, the Archives are currently not up to date. GMANE provides an alternative service for most mailing lists.
c.f. bug 424647
List Archive: gentoo-dev
Lists: gentoo-dev: < Prev By Thread Next > < Prev By Date Next >
To: gentoo-dev@g.o
From: Vaeth <vaeth@...>
Subject: Re: [gentoo-dev-announce] debug USE flag misuse
Date: Fri, 2 Jul 2010 15:29:44 +0200 (CEST)
Ryan Hill <dirtyepic@g.o> wrote:

> If your build system sets -ffast-math or -fstrict-aliasing
> then the user can disable this by setting -fno-fast-math
> or -fno-strict-aliasing in their CFLAGS.

Just because some flags have "counter"-flags by accident,
this does not hold for all flags. It is more reasonable to have
other means that the flags are not modified in the first place.
In fact, when I first introduced adding of CFLAGS, there were
lot of complaints that this is evil and must not be done.
I can understand this point of view (even if I know that
certain CFLAGS should be used with the code and I would also
prefer to have them to find possibly hidden bugs), so we
compromised by having an option:
With this option everybody could live well, since users with
special settings will not run into trouble because undesired
flags are added, and other users could just select the USE flag
and have the benefits of appropriately optimized code.
Up to now, that is, when we have this IMHO needless discussion
that an option should not be an option.

I hope that this answers also the question of
Alec Warner <antarus@g.o>:

: I am confused.  If you want the users to use a default set of CFLAGS
: you should set this in your build system (autotools, cmake, whatever).
: [...]
: I believe the above link seems to describe what you are looking to do
: using autotools.

Technically, I have no problem to force in that certain
CFLAGS are used (unless somebody patches the, of course).
The problem is that it is not good to force this if the user disagrees
(or maybe even unless he explicitly agrees), i.e. it should be an
option which the user really has. (If this option should only be
documented in some INSTALL text or in the ./configure output,
most users do not really have this option, because they would not
even know about it.)

Best Regards

Re: [gentoo-dev-announce] debug USE flag misuse
-- Ryan Hill
Re: [gentoo-dev-announce] debug USE flag misuse
-- Vaeth
Re: [gentoo-dev-announce] debug USE flag misuse
-- Vaeth
Re: [gentoo-dev-announce] debug USE flag misuse
-- Vaeth
Lists: gentoo-dev: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
Re: Re: [gentoo-dev-announce] debug USE flag misuse
Next by thread:
Re: [gentoo-dev-announce] debug USE flag misuse
Previous by date:
Re: Over using preserve_old_lib, don't do that
Next by date:
Re: Council manifesto of sping

Updated Jun 29, 2012

Summary: Archive of the gentoo-dev mailing list.

Donate to support our development efforts.

Copyright 2001-2013 Gentoo Foundation, Inc. Questions, Comments? Contact us.