[GRASS-dev] New NVIZ compile error

William Kyngesburye woklist at kyngchaos.com
Thu Oct 16 12:23:33 EDT 2008


On Oct 16, 2008, at 10:56 AM, Glynn Clements wrote:

> The problem is the use of ":=" in r33887. Whereas "=" assigns the RHS
> literally (with any variable references left unexpanded), ":="
> recursively expands any variable references in the RHS prior to
> assignment.
...
> The code should have used either "=" or (preferably) "+=", e.g.:
>
> 	ifeq ($(OPENGL_X11),1)
> 	EXTRA_LIBS += $(XLIBPATH) $(OPENGLLIB) $(OPENGLULIB)
> 	else
> 	EXTRA_LIBS += $(OPENGLLIB) $(OPENGLULIB)
> 	endif


Thanks for the clarification.  I was going from example from another  
makefile I was currently looking at (wxpython/vdigit), though I did  
notice that yet another used += (lib/nviz).

I just changed lib/ogsf/Makefile, and the wx nviz and vdigit makefiles  
to use +=.


-----
William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>
http://www.kyngchaos.com/

"Oh, look, I seem to have fallen down a deep, dark hole.  Now what  
does that remind me of?  Ah, yes - life."

- Marvin




More information about the grass-dev mailing list