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

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



Le Fri, Jun 27, 2008 at 10:01:18AM +0000, Yavor Doganov a écrit :
> ?? Thu, 26 Jun 2008 09:48:32 +0900, Charles Plessy ????????????:
> 
> > Would the following be better?
> > 
> >   When a Debian binary package is built, variables such as {{{CFLAGS}}},
> >   {{{CXXFLAGS}}}, {{{CPPFLAGS}}},... are set by the Debian building
> >   system to override the ones in the {{{Makefile}}}.
> 
> I don't know; this text still makes me feel uneasy.

Hi again,

how about :

Some {{{make}}} variables are reserved to the user, and the
[http://www.gnu.org/software/libtool/manual/automake/User-Variables.html#User-Variables
Automake manual] and the
[http://www.gnu.org/prep/standards/standards.html#Command-Variables GNU
coding standards] advise to never use them for switches that are
required for proper compilation of the package. 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}}}. We therefore strongly
recommend to follow the above advice.

Have a nice day,

-- 
Charles


Reply to: