This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [lto, build] Provide elf_getshdrstrndx replacement
Richard Guenther <richard.guenther@gmail.com> writes:
> And honza now reports
>
> ../../gcc/lto/lto-elf.c:469:3: error: 'elf_getshstrndx' is
> deprecated (declared at /home/jh/trunk/libelf/lib/libelf.h:261)
>
> thus, the configure checks should probably use -Werror (which
> won't reliably work for non-gcc host compilers ...). Or we
> should build with -Wno-deprecated-declarations.
This should only happen on platforms that lack elf_getshdrstrndx, so it
seems strange that the old form is declared deprecated, but the new one
missing. Could you check if this is really true or another failure of
the configure test?
Thanks.
Rainer
--
-----------------------------------------------------------------------------
Rainer Orth, Center for Biotechnology, Bielefeld University