When using --as-needed in LDFLAGS make fails. Gentoo, GCC-4.4.3, glibc-2.11-r1,
Reported by Andrzej Krentosz
Originally assigned to Sylvestre LEDRU
-- Bug description --
When using --as-needed in LDFLAGS make fails.
Gentoo, GCC-4.4.3, glibc-2.11-r1, libtool-2.2.6b, binutils-2.20
CFLAGS="-O2 -march=native -pipe"
CXXFLAGS="${CFLAGS}"
LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,--as-needed"
-- Scilab error message --
Error message in attachment.
-- How to reproduce the bug --
Created an attachment (id=1535)
Error log
Enable --as-needed
configure and make