[GRASS-dev] discussion: replacing ps.map

Glynn Clements glynn at gclements.plus.com
Fri Apr 6 11:58:24 EDT 2007


William Kyngesburye wrote:

> > This suggests that the linker needs something similar to the
> > -Wl,-rpath-link switch which is used on Linux:
> >
> > 	CC_SEARCH_FLAGS='-Wl,-rpath-link,${LIB_RUNTIME_DIR}'
> >
> > This tells the linker where to look for dependencies.
> >
> > Without that, you will need to ensure that the lib directory of any
> > installed version of GRASS isn't searched automatically (e.g. due to
> > $DYLD_LIBRARY_PATH or similar).
> 
> Hm, in the GRASS way of linking, all libs are linked in directly,  
> whether they are indirect or not.  Shouldn't the psdriver lib be  
> linked to raster lib then?  Currently grass.make has:
> 
> RASTERLIB     = -l$(RASTER_LIBNAME) $(PNGDRIVERLIB) $(DRIVERLIB) $(GISLIB)
> 
> If I add $(PSDRIVERLIB) to that, it doesn't try to link the installed  
> libraries and everything builds successfully.

Currently, we do that to allow for the --disable-shared case; it
shouldn't actually be necessary for shared libraries.

OTOH, RASTERLIB needs $(PSDRIVERLIB) to the same extent that it needs
$(PNGDRIVERLIB), so it should be added so long as we're listing
dependencies explicitly.

Fixed in CVS.

-- 
Glynn Clements <glynn at gclements.plus.com>




More information about the grass-dev mailing list