Add clang support to gdb_compile_shlib
Commit Message
Hi.
This patch fixes several more failures in the testsuite when run with clang.
gdb.base/
pending.exp
fixsection.exp
shlib-call.exp
shreloc.exp
solib-display.exp
solib-nodir.exp
solib-search.exp
solib-symbol.exp
2014-08-25 Doug Evans <dje@google.com>
* lib/gdb.exp (gdb_compile_shlib): Add support for clang.
@@ -2947,6 +2947,9 @@ proc gdb_compile_shlib {sources dest options} {
"xlc-*" {
lappend obj_options "additional_flags=-qpic"
}
+ "clang-*" {
+ lappend obj_options "additional_flags=-fpic"
+ }
"gcc-*" {
if { !([istarget "powerpc*-*-aix*"]
|| [istarget "rs6000*-*-aix*"]