aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorDoug Evans <dje@google.com>2014-08-27 09:40:21 -0700
committerDoug Evans <dje@google.com>2014-08-27 09:40:21 -0700
commitee92b0dd4e4abc5063f689a084c27ee7d5b08942 (patch)
treee57e996584f5cef91b05f4714616843af8a61d98 /gdb
parentc8831961f9fecf81e90fe7c8c94b47e01ee64662 (diff)
downloadgdb-ee92b0dd4e4abc5063f689a084c27ee7d5b08942.zip
gdb-ee92b0dd4e4abc5063f689a084c27ee7d5b08942.tar.gz
gdb-ee92b0dd4e4abc5063f689a084c27ee7d5b08942.tar.bz2
lib/gdb.exp (gdb_compile_shlib): Add support for clang.
gdb/testsuite/ChangeLog: * lib/gdb.exp (gdb_compile_shlib): Add support for clang.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/testsuite/ChangeLog4
-rw-r--r--gdb/testsuite/lib/gdb.exp6
2 files changed, 10 insertions, 0 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index cac4210..4a65fef 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -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.
diff --git a/gdb/testsuite/lib/gdb.exp b/gdb/testsuite/lib/gdb.exp
index 61e1614..1019ecd 100644
--- a/gdb/testsuite/lib/gdb.exp
+++ b/gdb/testsuite/lib/gdb.exp
@@ -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*"]