[rfc] testsuite/lib/gdb.exp: Enable additional linker flags in gdb_compile_shlib

Markus Deuling deuling@de.ibm.com
Wed May 16 08:12:00 GMT 2007


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




-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: diff-fix-shlib-linker-opt
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20070516/7ea814b3/attachment.ksh>


More information about the Gdb-patches mailing list