From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22711 invoked by alias); 18 Apr 2016 10:07:49 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 22681 invoked by uid 89); 18 Apr 2016 10:07:48 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.8 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY,RP_MATCHES_RCVD autolearn=ham version=3.3.2 spammy= X-HELO: mga04.intel.com Received: from mga04.intel.com (HELO mga04.intel.com) (192.55.52.120) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 18 Apr 2016 10:07:35 +0000 Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga104.fm.intel.com with ESMTP; 18 Apr 2016 03:07:33 -0700 X-ExtLoop1: 1 Received: from irvmail001.ir.intel.com ([163.33.26.43]) by fmsmga004.fm.intel.com with ESMTP; 18 Apr 2016 03:07:32 -0700 Received: from ulvlx001.iul.intel.com (ulvlx001.iul.intel.com [172.28.207.17]) by irvmail001.ir.intel.com (8.14.3/8.13.6/MailSET/Hub) with ESMTP id u3IA7V58000586; Mon, 18 Apr 2016 11:07:31 +0100 Received: from ulvlx001.iul.intel.com (localhost [127.0.0.1]) by ulvlx001.iul.intel.com with ESMTP id u3IA7VbX001328; Mon, 18 Apr 2016 12:07:31 +0200 Received: (from heckel@localhost) by ulvlx001.iul.intel.com with œ id u3IA7VFn001324; Mon, 18 Apr 2016 12:07:31 +0200 From: Bernhard Heckel To: qiyaoltc@gmail.com Cc: gdb-patches@sourceware.org, brobecker@adacore.com, Bernhard Heckel Subject: [PATCH V4 2/3] Testsuite: Fix compiling of shared libraries with ICC. Date: Mon, 18 Apr 2016 10:07:00 -0000 Message-Id: <1460974046-1281-3-git-send-email-bernhard.heckel@intel.com> In-Reply-To: <1460974046-1281-1-git-send-email-bernhard.heckel@intel.com> References: <1460974046-1281-1-git-send-email-bernhard.heckel@intel.com> X-IsSubscribed: yes X-SW-Source: 2016-04/txt/msg00387.txt.bz2 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. --- gdb/testsuite/lib/gdb.exp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gdb/testsuite/lib/gdb.exp b/gdb/testsuite/lib/gdb.exp index 1ef6a96..75c5e68 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... } -- 2.7.1.339.g0233b80