[GRASS-dev] [bug #5185] (grass) shared libraries problem (Solaris2.9/Sparc)

Markus Neteler neteler at itc.it
Sat May 12 08:24:44 EDT 2007


On Sat, May 12, 2007 at 01:09:59PM +0100, Glynn Clements wrote:
> 
> Markus Neteler via RT wrote:
> 
> > https://intevation.de/rt/webrt?serial_num=5185
> > 
> > RT wrote:
> > > Sorry to say, but the problem persists. Did a CVS update today, and the
> > > configure-script still sets include/Make/Platform.make:
> > >
> > > SHLIB_LD = /usr/ccs/bin/ld -G -z text
> > >
> > > which is not able to link anything during the compilation. When changed
> > > to:
> > >
> > > SHLIB_LD = CC -G -z text
> > >
> > > compilation runs ok.
> > >
> > > If I can provide you with some other related files etc. please let me
> > > know.
> > >
> > > Harri K.
> > 
> > Any idea how to fix this?
> 
> Change lines 1158, 1207 of aclocal.m4.

Is attached patch right? I wonder about CC version $CC. Have
used $CC in the patch.

Markus 
-------------- next part --------------
Index: aclocal.m4
===================================================================
RCS file: /home/grass/grassrepository/grass6/aclocal.m4,v
retrieving revision 1.31
diff -u -r1.31 aclocal.m4
--- aclocal.m4	6 Apr 2007 15:51:26 -0000	1.31
+++ aclocal.m4	12 May 2007 12:22:37 -0000
@@ -1155,7 +1155,7 @@
 		LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
 	    else
 		SHLIB_CFLAGS="-KPIC"
-		SHLIB_LD="/usr/ccs/bin/ld -G -z text"
+		SHLIB_LD="$CC -G -z text"
 		CC_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}'
 		LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
 	    fi
@@ -1204,7 +1204,7 @@
 		LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
 	    else
 		SHLIB_CFLAGS="-KPIC"
-		SHLIB_LD="/usr/ccs/bin/ld -G -z text"
+		SHLIB_LD="$CC -G -z text"
 		CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}'
 		LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}'
 	    fi


More information about the grass-dev mailing list