This is the mail archive of the
gdb-cvs@sourceware.org
mailing list for the GDB project.
[binutils-gdb] Testsuite: Fix compiling of shared libraries with ICC.
- From: Bernhard Heckel <bernhardheckel at sourceware dot org>
- To: gdb-cvs at sourceware dot org
- Date: 18 Apr 2016 12:01:53 -0000
- Subject: [binutils-gdb] Testsuite: Fix compiling of shared libraries with ICC.
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=9b9b09e9020aa32ade1a86461804a1950d967abb
commit 9b9b09e9020aa32ade1a86461804a1950d967abb
Author: Bernhard Heckel <bernhard.heckel@intel.com>
Date: Mon Apr 18 11:49:07 2016 +0200
Testsuite: Fix compiling of shared libraries with ICC.
We are missing "-fpic" flag when compiling shared libraries with ICC.
2016-04-18 Bernhard Heckel <bernhard.heckel@intel.com>
gdb/Testsuite/Changelog:
* lib/gdb.exp (gdb_compile_shlib): Add flag for ICC compiler.
Diff:
---
gdb/testsuite/ChangeLog | 4 ++++
gdb/testsuite/lib/gdb.exp | 3 +++
2 files changed, 7 insertions(+)
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index fd393ef..56ce135 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,3 +1,7 @@
+2016-04-18 Benrhard Heckel <bernhard.heckel@intel.com>
+
+ * lib/gdb.exp (gdb_compile_shlib): Add flag for ICC compiler.
+
2016-04-18 Bernhard Heckel <bernhard.heckel@intel.com>
* lib/compiler.c: Add Intel specific preprocessor macros.
diff --git a/gdb/testsuite/lib/gdb.exp b/gdb/testsuite/lib/gdb.exp
index 0d8a3b0..8b0241d 100644
--- a/gdb/testsuite/lib/gdb.exp
+++ b/gdb/testsuite/lib/gdb.exp
@@ -3553,6 +3553,9 @@ proc gdb_compile_shlib {sources dest options} {
lappend obj_options "additional_flags=-fpic"
}
}
+ "icc-*" {
+ lappend obj_options "additional_flags=-fpic"
+ }
default {
# don't know what the compiler is...
}