https://sourceware.org/bugzilla/show_bug.cgi?id=33374
--- Comment #8 from H.J. Lu <hjl.tools at gmail dot com> ---
We cannot yet remove the non-_sol2 emulatations on Solaris for a pretty ugly
reason: current libtool has this snippet in m4/libtool.m4:
case `$FILECMD conftest.o` in
*64-bit*)
case $lt_cv_prog_gnu_ld in
yes*)
case $host in
i?86-*-solaris*|x86_64-*-solaris*)
LD="${LD-ld} -m elf_x86_64"
;;
sparc*-*-solaris*)
LD="${LD-ld} -m elf64_sparc"
;;
esac
# GNU ld 2.21 introduced _sol2 emulations. Use them if available.
if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
LD=${LD-ld}_sol2
fi
;;
The consequence is that in 64-bit mode it tries to run
gld -m elf_x86_64 -V
to determine if the *_sol2 emulations are present. However, this fails:
gld: unrecognised emulation mode: elf_x86_64
Supported emulations: elf_i386_sol2 elf_x86_64_sol2
badly breaking the check for shared library support.
--
You are receiving this mail because:
You are on the CC list for the bug.