On Wed, Jul 06, 2011 at 10:29:27PM +0200, Stefano Rivera wrote:
> tags 631251 - moreinfo
> retitle 631251 gosmore failed to build with -Wl,--as-needed
> user debian-...@lists.debian.org
> usertag 631251 ld-as-needed
> thanks
> 
> > ...it builds fine here (i386, unstable, GCC 4.6).
> 
> It's a ld --as-needed bug:
> 
> http://wiki.debian.org/ToolChain/DSOLinking
> 
> e.g.
> $ gcc -Wl,--as-needed -lm density.c -o density
> /tmp/ccRfNyA1.o: In function `main':
> density.c:(.text+0x20d): undefined reference to `exp'
> density.c:(.text+0x212): undefined reference to `atan'
> etc.
> 
> SR
> 

Order does matter, -lm should go at the end of the command AFAIK.

-- 
Francesco P. Lovergine



_______________________________________________
Pkg-grass-devel mailing list
Pkg-grass-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-grass-devel

Reply via email to