On Wed, 7 Nov 2018, Steve Ellcey wrote: > I have a question about the C++ library testsuite. I built and installed > a complete toolchain with GCC, binutils, and glibc in a directory ($T) and > then I run the GCC testsuite with this command: > > # cd to GCC object directory > make -j50 check RUNTESTFLAGS="--tool_opts '--sysroot=$T > -Wl,--dynamic-linker=$T/lib/ld-linux-aarch64.so.1 -Wl,-rpath=$T/lib64 > -Wl,-rpath=$T/usr/lib64'"
I advise instead putting those options in your board file. set_board_info ldflags "-Wl,whatever" Note that you also need to make your board file set LOCPATH and GCONV_PATH appropriately (pointing the $sysroot/usr/lib/locale and $sysroot/usr/lib64/gconv respectively) for libstdc++ locale tests to work correctly with such a non-default glibc. That would be code in your <target>_load procedure in the board file (or in such a procedure in a file it loads via load_generic_config, etc.). -- Joseph S. Myers jos...@codesourcery.com