From: Bernhard Heckel Date: Mon, 18 Apr 2016 09:49:07 +0000 (+0200) Subject: Testsuite: Fix compiling of shared libraries with ICC. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9b9b09e9020aa32ade1a86461804a1950d967abb;p=binutils-gdb.git Testsuite: Fix compiling of shared libraries with ICC. We are missing "-fpic" flag when compiling shared libraries with ICC. 2016-04-18 Bernhard Heckel gdb/Testsuite/Changelog: * lib/gdb.exp (gdb_compile_shlib): Add flag for ICC compiler. --- diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index fd393efbfff..56ce1357982 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2016-04-18 Benrhard Heckel + + * lib/gdb.exp (gdb_compile_shlib): Add flag for ICC compiler. + 2016-04-18 Bernhard Heckel * lib/compiler.c: Add Intel specific preprocessor macros. diff --git a/gdb/testsuite/lib/gdb.exp b/gdb/testsuite/lib/gdb.exp index 0d8a3b060fa..8b0241d2ad3 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... }