[haiku-commits] Re: r40739 - haiku/trunk/data/develop

  • From: Siarzhuk Zharski <zharik@xxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Tue, 01 Mar 2011 16:59:13 +0100

Hola François!

Am 28.02.2011 23:47, schrieb François Revol:
Le 28 févr. 2011 à 20:35, Alexander von Gluck a écrit :
The LD ?= should only define LD as gcc if it is not set within
the makefile (which it isn't in the provided makefile engine example),

?= works only for _undefined_ variables, but $(origin LD) says that LD is _default_ one.

but if that breaks compatibility in someway that the $origin doesn't...
it's ok by me :)

Looks weird but I didn't investigate.

Looks like LD is a special variable set by [g]make.

Btw, could be useful to have a variable defined to the c++ lib depending on the 
gcc version, to add to LIBS in the makefile.

Yes, that is the persistent headache with this stdc++ difference between gcc4 and gcc2 builds. Some time ago I tried this but failed to propagate this variable "back" to calling makefile. ;-) I just knew nothing about two-ways makefiles processing and difference between immediate and deferred assignments. ;-D Looks like I shoud try again some time.

Kind Regards,

Other related posts: