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

Re: Problem with implicit rule for .o files and overriding of CXXFLAGS.



On Monday 07 July 2008 16:39:14 Charles Plessy wrote:
> Le Sun, Jul 06, 2008 at 09:34:33PM +0300, Yavor Doganov a écrit :
> > Charles Plessy wrote:

Hello,

> > > When a Debian binary package is built, environment variables such as
> > > {{{CFLAGS}}} and {{{CXXFLAGS}}} are set by {{{dpkg-buildpackage}}}
> > > and may override the corresponding variables in the
> > > {{{Makefile}}}.
> >
> > The matter is more complex in general; add here the well known fact
> > that a truckload of upstream makefiles/build systems is broken.
>
> Well, this is why I tried to write something in the wiki page that is
> supposed to be something to read for upstream maintainers. But I am not
> a C programmer, I do not think I can improve what I wrote any further. 

It is not that much related to the C programming language, nor to the GNU 
implementation for it (compiler, linker, standard library), nor with any 
other GNU programming language implementation (like the ones for C++ or Ada), 
it is the GNU build system (autotools, make) which adds the complexity.

> I  can delete it if it is too confusing, however.

Please don't, it is still useful, however I would be thankful if you or Yavor 
also add the use cases from the latest discussions, even doing them verbatim.

> Thanks for the explanation anyway, this FLAGS management is a real
> headache…

Yes, it is, and I'm happier with much simpler beasts like icmake for instance.

-- 
pub 4096R/0E4BD0AB 2003-03-18 <people.fccf.net/danchev/key pgp.mit.edu>


Reply to: