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

2008-07-07 Thread Felipe Sateler
George Danchev wrote: > 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 {{{CXXFLA

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

2008-07-07 Thread George Danchev
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-buildpacka

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

2008-07-07 Thread Charles Plessy
Le Sun, Jul 06, 2008 at 09:34:33PM +0300, Yavor Doganov a écrit : > Charles Plessy wrote: > > how about : > > > > When a Debian binary package is built, environment variables such as > > {{{CFLAGS}}} and {{{CXXFLAGS}}} are set by {{{dpkg-buildpackage}}} > > and may override the corresponding varia

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

2008-07-06 Thread Yavor Doganov
At Sun, 29 Jun 2008 20:03:51 +0900, Charles Plessy wrote: > > > I don't know; this text still makes me feel uneasy. > > how about : > > When a Debian binary package is built, environment variables such as > {{{CFLAGS}}} and {{{CXXFLAGS}}} are set by {{{dpkg-buildpackage}}} > and may override the

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

2008-06-29 Thread Charles Plessy
Le Fri, Jun 27, 2008 at 10:01:18AM +, 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

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

2008-06-27 Thread Daniel Leidert
Am Freitag, den 27.06.2008, 10:16 + schrieb Yavor Doganov: > В Thu, 26 Jun 2008 23:14:55 +0200, Daniel Leidert написа: > > > or tell him to better use one of the following: > > > > DEFS += -DVERSION="\"1.00\"" > > This won't work. The objects are built by make's built-in implicit > rules,

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

2008-06-27 Thread Yavor Doganov
В Thu, 26 Jun 2008 23:14:55 +0200, Daniel Leidert написа: > or tell him to better use one of the following: > > DEFS += -DVERSION="\"1.00\"" This won't work. The objects are built by make's built-in implicit rules, and this variable is not used there: COMPILE.cc = $(CXX) $(CXXFLAGS) $(CPPFLAG

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

2008-06-27 Thread Yavor Doganov
В 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 d

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

2008-06-26 Thread Daniel Leidert
Sorry for the CC. I was away and missed the discussion :) Am Mittwoch, den 25.06.2008, 13:24 +0900 schrieb Charles Plessy: > while working on an update to the `proda' package, I realised that a > compilation option, DVERSION="\"1.00\"", was discarded during the build > of the Debian binary packag

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

2008-06-26 Thread Daniel Leidert
Am Donnerstag, den 26.06.2008, 09:18 +1000 schrieb Trent W. Buck: > Charles Plessy <[EMAIL PROTECTED]> writes: > > > while working on an update to the `proda' package, I realised that a > > compilation option, DVERSION="\"1.00\"", was discarded during the build > > of the Debian binary package. Th

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

2008-06-25 Thread Charles Plessy
Le Wed, Jun 25, 2008 at 03:09:28PM +, Yavor Doganov a écrit : > ?? Wed, 25 Jun 2008 23:14:44 +0900, Charles Plessy : > > > When a Debian binary package is > > built, variables such as {{{CFLAGS}}}, {{{CXXFLAGS}}}, > > {{{CPPFLAGS}}},... are set in the environnement and overr

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

2008-06-25 Thread Trent W. Buck
Charles Plessy <[EMAIL PROTECTED]> writes: > while working on an update to the `proda' package, I realised that a > compilation option, DVERSION="\"1.00\"", was discarded during the build > of the Debian binary package. The reason is very simple: > > OTHERFLAGS = -DVERSION="\"1.00\"" > CXXFLAGS =

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

2008-06-25 Thread George Danchev
On Wednesday 25 June 2008, Yavor Doganov wrote: > Георги Данчев wrote: > > This is true, unless the `override' directive is used in the > > makefile to override variables set with a command line argument. > > Sure, make gives you plenty of rope to hang yourself, to abuse the > users of your program

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

2008-06-25 Thread Yavor Doganov
Георги Данчев wrote: > > This is true, unless the `override' directive is used in the > makefile to override variables set with a command line argument. Sure, make gives you plenty of rope to hang yourself, to abuse the users of your program, or to come up with something absolutely adorable. I d

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

2008-06-25 Thread George Danchev
On Wednesday 25 June 2008, Yavor Doganov wrote: --cut-- Hi, > If you define > > CFLAGS = ... > > in debian/rules, this is a make variable, not an environment variable, > and it won't propagate to sub-make. > > However, if you do > > $(MAKE) CFLAGS="$(CFLAGS)" > > that value will be used for the b

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

2008-06-25 Thread Yavor Doganov
В Wed, 25 Jun 2008 23:14:44 +0900, Charles Plessy написа: > When a Debian binary package is > built, variables such as {{{CFLAGS}}}, {{{CXXFLAGS}}}, > {{{CPPFLAGS}}},... are set in the environnement and override the ones > in the {{{Makefile}}}. That's not entirely true and not entirely f

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

2008-06-25 Thread Charles Plessy
Le Wed, Jun 25, 2008 at 11:06:09AM +, Yavor Doganov a écrit : > > > OTHERFLAGS = -DVERSION="\"1.00\"" > > CXXFLAGS = -g -W -Wall -pedantic $(OTHERFLAGS) > > Use CPPFLAGS for this -- of course the recipes should be properly written > in order to have some effect. > > authoritative documen

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

2008-06-25 Thread Yavor Doganov
В Wed, 25 Jun 2008 13:24:17 +0900, Charles Plessy написа: [ I had not looked at the `proda' package, sorry. ] > OTHERFLAGS = -DVERSION="\"1.00\"" > CXXFLAGS = -g -W -Wall -pedantic $(OTHERFLAGS) Use CPPFLAGS for this -- of course the recipes should be properly written in order to have some eff

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

2008-06-25 Thread Paul Wise
A good way to fix this would be to switch to automake, there *FLAGS are only touched by people building the source, any special flags needed (such as -D) are added to AM_*FLAGS or foo_*flags. -- bye, pabs http://wiki.debian.org/PaulWise -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a sub

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

2008-06-24 Thread Rudi Cilibrasi
> > First of all, I would appreciate if somebody could give me a link to an > authoritative documentation that explains that CXXFLAGS (and others) > should be expected to be changed to local values by the user. It seems > to me that many upstream authors ignore this fact and write makefiles > that

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

2008-06-24 Thread Charles Plessy
Dear mentors, while working on an update to the `proda' package, I realised that a compilation option, DVERSION="\"1.00\"", was discarded during the build of the Debian binary package. The reason is very simple: OTHERFLAGS = -DVERSION="\"1.00\"" CXXFLAGS = -g -W -Wall -pedantic $(OTHERFLAGS) pro