I would like to suggest that default LDFLAGS in Gentoo contain the following
flags: "-Wl,-O1,--hash-style=gnu,--sort-common".

-O1 enables some basic optimizations.
--hash-style=gnu causes that ld creates only new GNU-style hash tables.
--sort-common causes that ld sorts the common symbols by size when it places
them in the appropriate output sections.

These options don't cause any problems, so they should be less controversial
than --as-needed.
(These options don't conflict with --as-needed, so --as-needed can be still
added to default LDFLAGS, but this thread isn't about --as-needed.)

--
Arfrever Frehtes Taifersar Arahesis
-- 
gentoo-dev@lists.gentoo.org mailing list

Reply via email to