[GRASS5] v.voronoi fails to build

Glynn Clements glynn.clements at virgin.net
Fri Oct 15 10:31:12 EDT 2004


Markus Neteler wrote:

> > The link command for shared libraries on Linux (possibly other
> > platforms) should include:
> > 
> > 	-Wl,-rpath-link,$(ARCH_LIBDIR)
> > 
> > This will tell the linker to look in $(ARCH_LIBDIR) for shared
> > libraries which aren't explicitly linked via a -l switch but are
> > dependencies of other shared libraries.
> 
> Should this go into aclocal.m4?

Probably.

> There is something like this for Linux:

>    759			SHLIB_LD="${CC} -shared"
>    760			LDFLAGS="-Wl,--export-dynamic"
>    761			CC_SEARCH_FLAGS='-Wl,-rpath-link,${LIB_RUNTIME_DIR}'
>    762			LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}

The build system ignores {LD,CC}_SEARCH_FLAGS. They are set in
Platform.make, but nothing references them. Shlib.make references
SHLIB_LDFLAGS, but nothing sets that.

According to the documentation for SC_CONFIG_CFLAGS in aclocal.m4:

#       LDFLAGS -      Flags to pass to the compiler when linking object
#                       files into an executable application binary such
#                       as tclsh.
#       LD_SEARCH_FLAGS-Flags to pass to ld, such as "-R /usr/local/tcl/lib",
#                       that tell the run-time dynamic linker where to look
#                       for shared libraries such as libtcl.so.  Depends on
#                       the variable LIB_RUNTIME_DIR in the Makefile. Could
#                       be the same as CC_SEARCH_FLAGS if ${CC} is used to link.

-- 
Glynn Clements <glynn.clements at virgin.net>




More information about the grass-dev mailing list