Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 96628 - Portage strips crucial symbols from static libraries
Summary: Portage strips crucial symbols from static libraries
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All All
: High major (vote)
Assignee: Portage team
Depends on:
Reported: 2005-06-20 11:00 UTC by Ben Anderson
Modified: 2007-01-11 11:01 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Note You need to log in before you can comment on or make changes to this bug.
Description Ben Anderson 2005-06-20 11:00:25 UTC
While stripping symbols to conserve space, Portage strips out symbols that ld needs to link static libraries. This doesn't incapacitate the system, as everything is dynamically linked by default, but when you DO want something statically linked, you'll get "unresolved reference" errors that just don't make sense. This can be predictably reproduced simply by adding "-static" to LDFLAGS and compiling just about anything that links to a library that's available on the system in static form. It can be worked around by adding FEATURES="nostrip" to your make.conf and recompiling all the affected libraries.
Comment 1 SpanKY gentoo-dev 2005-06-20 12:14:18 UTC
the only time ive seen problems with stripping static archives is when users
LDFLAGS were flaky or when the toolchain was doing things wrong

the default strip flags --strip-unneeded is sane
Comment 2 solar (RETIRED) gentoo-dev 2005-06-20 13:26:39 UTC
This is invalid.
Comment 3 Marius Mauch (RETIRED) gentoo-dev 2007-01-11 11:01:31 UTC
Closing due to old age