lib/gdb.exp (gdb_compile_shlib): Add support for clang.

gdb/testsuite/ChangeLog:

	* lib/gdb.exp (gdb_compile_shlib): Add support for clang.
This commit is contained in:
Doug Evans 2014-08-27 09:40:21 -07:00
parent c8831961f9
commit ee92b0dd4e
2 changed files with 10 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2014-08-27 Doug Evans <dje@google.com>
* lib/gdb.exp (gdb_compile_shlib): Add support for clang.
2014-08-25 Doug Evans <dje@google.com>
* gdb.mi/basics.c (callee3, callee2, callee1): Specify result type.

View File

@ -2947,6 +2947,12 @@ proc gdb_compile_shlib {sources dest options} {
"xlc-*" {
lappend obj_options "additional_flags=-qpic"
}
"clang-*" {
if { !([istarget "*-*-cygwin*"]
|| [istarget "*-*-mingw*"]) } {
lappend obj_options "additional_flags=-fpic"
}
}
"gcc-*" {
if { !([istarget "powerpc*-*-aix*"]
|| [istarget "rs6000*-*-aix*"]