Hi, I try to build a shared library using gdb_compile_shlib. The build is done in two steps (compile and link). The testcase I work on adds set lib_flags "$lib_flags additional_flags=-Wl,-Bsymbolic" as an option to gdb_compile_shlib. The compile run quits with gcc: -Bsymbolic: linker input file unused because linking not done because the linker option is given to the compile run, too. This patch removes any linker options for the first compile run. This makes it possible to add additional linker flags to gdb_compile_shlib. Testsuite showed no regression. Is that ok to commit? ChangeLog: * lib/gdb.exp (gdb_compile_shlib): Remove linker options for first compile run. -- Markus Deuling GNU Toolchain for Linux on Cell BE deuling@de.ibm.com