[GRASS-user] Grass7 on FreeBSD 9.1 : LD_SEARCH_FLAGS

Pierre Stévens pierre at geobsd.com
Mon Mar 25 15:31:28 PDT 2013


There are some specific aspects on compiling Grass7 on FreeBSD 9.1.


1. Must use "gmake" instead of "make". 'Make' is different under BSD
Environnement.

2. The 'gis.h' header try to include the 'alloca.h' header. On FreeBSD,
alloca() is declared in 'stdlib.h'
(http://forums.freebsd.org/showthread.php?t=30354).

This issue was temporarily fixed with : ' #touch
/usr/local/include/alloca.h '


3. Current error appears in ' grass7/dist.i386-freebsd/lib/manage ' :

	ld: unrecognized option '-Wl, -rpath, /grass7/dist.i386-freebsd/lib

Possible solution could be found in LD_SEARCH_FLAGS like in this post  
(https://trac.osgeo.org/grass/ticket/1757#comment:4).

I try to modify line 562 in ' aclocal.m4 ' and replace

SHLIB_LD="ld -Bshareable -x"
by SHLIB_LD="${CC} -shared"


But it didn't work.

Maybe one of us have already a solution ?


More information about the grass-user mailing list