[GRASS-dev] New NVIZ compile error

Markus Neteler neteler at osgeo.org
Thu Oct 16 12:32:23 EDT 2008


On Thu, Oct 16, 2008 at 6:23 PM, William Kyngesburye
<woklist at kyngchaos.com> wrote:
> 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 +=.

Thanks, now it compiles again.

Markus


More information about the grass-dev mailing list