#1757: LD_SEARCH_FLAGS incorrect for NetBSD
-------------------------+--------------------------------------------------
Reporter: brook | Owner: grass-dev@…
Type: defect | Status: new
Priority: critical | Milestone: 7.0.0
Component: Default | Version: svn-trunk
Keywords: | Platform: Other Unix
Cpu: Unspecified |
-------------------------+--------------------------------------------------
Comment(by mmetz):
Replying to [comment:6 glynn]:
> Replying to [comment:5 mmetz]:
>
> > I think I discovered inconsistencies, if not errors, in the G7 Make
system: flags meant for cc are also passed to ld and vice versa, probably
because it is assumed that ld = cc.
>
> Programs written in C are linked with $(CC). Programs written in C++ are
linked with $(CXX). Shared libraries are linked with $(SHLIB_LD). All
three are passed $(LDFLAGS). $(SHLIB_LD) is additionally passed
$(SHLIB_LDFLAGS).
In this case the documentation in aclocal.m4 needs to be updated, because
there flags for building shared libraries are separate from flags for
building and linking programs.
In any case, with SHLIB_LD="${CC} -shared" I got G7 compiled and running
on NetBSD 6.
Markus M
--
Ticket URL: <https://trac.osgeo.org/grass/ticket/1757#comment:7>
GRASS GIS <http://grass.osgeo.org>
_______________________________________________
grass-dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/grass-dev