Hi,

On Wed, Mar 09, 2011 at 09:37:45PM +0530, Tarun Kumar Mall wrote:
> In Ubuntu, we've applied the attached patch to achieve the following:
> 
>   * debian/patches/070_fix_ftbfs_binutils-gold.patch: moved library
>     in the end in makefile to fix FTBFS. (LP: #732064) 

Is the problem with gold the -lsocks or the -Wl,-z,defs -Wl,--as-needed?
I've removed the -lsocks for unrelated reasons.

I tried your patch, and when compiling with the standard debian
toolchain (sid with ld.bfd from binutils 2.21.52.20110707-1) I get:

: dpkg-shlibdeps: warning: dependency on libz.so.1 could be avoided if 
"debian/ckermit/usr/bin/kermit" were not uselessly linked against it (they use 
none of its symbols).
: dpkg-shlibdeps: warning: dependency on libcrypt.so.1 could be avoided if 
"debian/ckermit/usr/bin/kermit" were not uselessly linked against it (they use 
none of its symbols).

which implies it is ignoring the --as-needed.
I'm inclined to include the patch anyway, as an FTBFS is worse
than a couple of warnings (that I'm fairly sure are spurious anyway)
but if it was only needed because of -lsocks then I'll just drop it.

any thoughts?

Incidentally, are there any plans in ubuntu to make gold the default linker?

cheers,

Ian.

-- 
Ian Beckwith - i...@erislabs.net - http://erislabs.net/ianb/
GPG fingerprint: AF6C C0F1 1E74 424B BCD5  4814 40EC C154 A8BA C1EA
Listening to: DJ Cheb I Sabbah - Krishna Lila - Govinda

Attachment: signature.asc
Description: Digital signature

Reply via email to