Bug#631251: gosmore version 0.0.0.20100711-1 failed to build with GCC-4.6/oneiric

Francesco P. Lovergine frankie at debian.org
Thu Jul 7 15:20:11 UTC 2011


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-gcc at 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





More information about the Pkg-grass-devel mailing list