Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 502314

Summary: sys-devel/binutils should patch or drop ld.gold on prefix
Product: Gentoo/Alt Reporter: William Throwe <wtt6>
Component: Prefix SupportAssignee: Gentoo Prefix <prefix>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description William Throwe 2014-02-24 04:40:48 UTC
ld.bfd is patched in prefix to add RUNPATH entries to binaries it creates so that prefixed libraries can be found.  ld.gold is not patched in this manner, so binaries created with it fail at runtime.  This is fine, except that some build systems (firefox and llvm are the ones I've run into so far) check for ld.gold and use it if it exists.

This may be considered a bug in the build systems of those packages, but since this can be fixed trivially by passing --disable-gold to binutils's configure script under prefix and thus not installing the effectively non-functional binary, I figured I'd report it against binutils first.
Comment 1 Fabian Groffen gentoo-dev 2020-12-14 20:49:14 UTC
gold is masked on Prefix