emerge sys-libs/readline fails on solaris because ${S}/support/shobj-conf specifies both '-shared' and '-Wl,-i' to gcc which fails. The flags don't work for gnu linker but for solaris linker. The attached patch determines whether the linker used by gcc is a gnu linker or not and appropriately passes the right options. This patch doesn't affect Linux functionality.
Created attachment 50591 [details, diff] pass appropriate options to linker for solaris
please send this patch upstream if you havent already
I did send it upstream...but you know, the water just trickles from upstream compared to the river that is gentoo...:) so, can you please leave it open for a while and if people upstream are not keen, then we can look into moving it into the ebuild. thanks.
i was going to add it to the ebuild, i just dont like fixes sitting in Gentoo and never being sent upstream
now in portage