Forced to use --enable-unit-tests=no otherwise cross-compilation fail

William Tambe <[email protected]>
Newsgroups gmane.comp.gdb.devel
Message-ID <CAF8i9mMMF+U3fubhwq0bRpbOYvF9xx=iS1_uzuUvH8A6_MBXvA@mail.gmail.com>
With Binutils 2.34, I have to use --enable-unit-tests=no with
./configure otherwise cross-compilation fail trying to link
gdbarch-selftests.o:

/usr/bin/ld: gdbarch-selftests.o: in function `_initialize_gdbarch_selftests()':
/binutils-gdb-build/gdb/../../binutils-gdb/gdb/gdbarch-selftests.c:168:
undefined reference to
`selftests::register_test_foreach_arch(std::__cxx11::basic_string<char,
std::char_traits<char>, std::allocator<char> > const&, void
(*)(gdbarch*))'

Why is it now required to use --enable-unit-tests=no when cross-compiling ?
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.