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

Re: Proposalto introduce compiler options passed from dpkg-buildpackage

Frank Lichtenheld writes:
> On Tue, Dec 04, 2007 at 05:08:13PM +0100, Matthias Klose wrote:
> > We define a set of macros which are passed from dpkg-buildpackage to
> If you say "macros" you mean the same as environment variables?

IIRC we cannot assume that debian/rules is a makefile and pass them as
macros directly, so we have to pass them as environment variables.

> [...]
> > === Alternate naming of the macros ===
> > 
> > Do omit the '''DEB_HOST_''' prefix and all packages should honour the
> > value of CFLAGS etc. in the environment. Many packages are likely to
> > do this by accident anyway. For packages that set CFLAGS etc., there
> > are basically two common cases:
> [...]
> > It has the disadvantage that these macros might be injected into the
> > build for some non-standard build systems.
> If we would choose to use the common names without DEB_HOST_ prefix
> should dpkg-buildpackage then honor them if they are already set in
> the environment? Probably not as this seems error prone.

yes, that makes sense.


Reply to: