Testsuite: Fix compiling of shared libraries with ICC.
authorBernhard Heckel <bernhard.heckel@intel.com>
Mon, 18 Apr 2016 09:49:07 +0000 (11:49 +0200)
committerBernhard Heckel <bernhard.heckel@intel.com>
Mon, 18 Apr 2016 11:57:31 +0000 (13:57 +0200)
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.

gdb/testsuite/ChangeLog
gdb/testsuite/lib/gdb.exp

index fd393efbfffd39c958d199cc9a6f409ce2288464..56ce1357982b70f0e1a3b70a586e8ac12298fee0 100644 (file)
@@ -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.
index 0d8a3b060fa5fb62aa83c592f0da1c05eb392c2d..8b0241d2ad3cb7f11ee10ae87b00dc6e97db2785 100644 (file)
@@ -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...
         }
This page took 0.051024 seconds and 4 git commands to generate.