GNOME Bugzilla – Bug 624948
patch for --as-needed and binutils-gold support
Last modified: 2014-05-04 04:05:46 UTC
Created attachment 166308 [details] [review] patch that fixes linking When using --as-needed and binutils-gold, the libICE library must be added to the link. This patch adds -lICE to $LIBS if it exists.
Revisiting old bugs with patches. Can you still reproduce this issue? I tried using binutils-gold and added '-Xlinker --as-needed' to LD_FLAGS, but still I could build evince successfully.
Comment on attachment 166308 [details] [review] patch that fixes linking FWIW, the patch contains garbage (ansi codes for color in a terminal)
This patch is pretty ancient, but also pretty simple. I don't have my original sources around anymore, sorry. I'd assume by now this problem has fixed since most distros use --as-needed. This was probably only a problem while that transition was being made.
Thanks for the feedback. I am closing this as obsolete. However, feel free to re-open it if the problem appaears again in the future.