From patchwork Sat Feb 8 15:57:56 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 24369 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ob0-f199.google.com (mail-ob0-f199.google.com [209.85.214.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id D9D0420967 for ; Sat, 8 Feb 2014 16:11:58 +0000 (UTC) Received: by mail-ob0-f199.google.com with SMTP id vb8sf19045165obc.2 for ; Sat, 08 Feb 2014 08:11:58 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:date :message-id:in-reply-to:references:cc:subject:precedence:list-id :list-unsubscribe:list-archive:list-post:list-help:list-subscribe :errors-to:sender:x-original-sender :x-original-authentication-results:mailing-list; bh=D9gBIUiZFSsjuG6OaDRZTshtiMjcpKBM4qvGhL4nkNM=; b=cjAGxyYQdzwI+I8ReRS3UZw7jtPf/GWbcTKE0be/s0cJBRmYAcixpu5zVa8h2GkC5F 7oGgdh3IRgkgCoV5IFCuH/STgVe3C7WDUh4/Q4zxirdgSFcfVeUf7FEsUufFndp+QXP/ Ht9o1QBumrzrblHqkYRCg3PB35ma3GmW19BwlLJNDlt3DrRGSzk7/BEvJKJ7MR1GVU8O Iw9BjKlDWAZeGBt4xDXIk1XRN6JhgDA6yn3xl4bbux3Y925Wb7ZUZY9VoEPpBnfPQNv/ p5YwxopHHnkI9ut1az++vPmOjJPeNcNab6PP/JW976Heq7wheaSGCv/1i4dgp9kWAZ3D KeyA== X-Gm-Message-State: ALoCoQnuytmwQ5+lc+X8EthwKnEsX5an7kTKAPbK9A+eN0UMj+CrmgNRFceZdbq2d3eGtV/nFOAe X-Received: by 10.182.65.168 with SMTP id y8mr8568127obs.38.1391875917962; Sat, 08 Feb 2014 08:11:57 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.48.38 with SMTP id n35ls1513916qga.68.gmail; Sat, 08 Feb 2014 08:11:57 -0800 (PST) X-Received: by 10.220.200.6 with SMTP id eu6mr215602vcb.35.1391875917783; Sat, 08 Feb 2014 08:11:57 -0800 (PST) Received: from mail-ve0-f172.google.com (mail-ve0-f172.google.com [209.85.128.172]) by mx.google.com with ESMTPS id fo2si2633344vcb.87.2014.02.08.08.11.57 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 08 Feb 2014 08:11:57 -0800 (PST) Received-SPF: neutral (google.com: 209.85.128.172 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.128.172; Received: by mail-ve0-f172.google.com with SMTP id c14so3713998vea.17 for ; Sat, 08 Feb 2014 08:11:57 -0800 (PST) X-Received: by 10.221.37.1 with SMTP id tc1mr398385vcb.32.1391875917705; Sat, 08 Feb 2014 08:11:57 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.220.174.196 with SMTP id u4csp41004vcz; Sat, 8 Feb 2014 08:11:57 -0800 (PST) X-Received: by 10.140.22.39 with SMTP id 36mr21233171qgm.59.1391875916407; Sat, 08 Feb 2014 08:11:56 -0800 (PST) Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id a8si6162219qak.112.2014.02.08.08.11.56 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Sat, 08 Feb 2014 08:11:56 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Received: from localhost ([::1]:47123 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WCAVX-0003hN-Tu for patch@linaro.org; Sat, 08 Feb 2014 11:11:55 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47258) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WCAIX-0007d2-3f for qemu-devel@nongnu.org; Sat, 08 Feb 2014 10:58:29 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WCAIS-0002vA-4N for qemu-devel@nongnu.org; Sat, 08 Feb 2014 10:58:29 -0500 Received: from mnementh.archaic.org.uk ([2001:8b0:1d0::1]:45684) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WCAIR-0002tl-Uc for qemu-devel@nongnu.org; Sat, 08 Feb 2014 10:58:24 -0500 Received: from pm215 by mnementh.archaic.org.uk with local (Exim 4.80) (envelope-from ) id 1WCAI9-0003Lo-LS; Sat, 08 Feb 2014 15:58:05 +0000 From: Peter Maydell To: Anthony Liguori Date: Sat, 8 Feb 2014 15:57:56 +0000 Message-Id: <1391875084-12772-22-git-send-email-peter.maydell@linaro.org> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1391875084-12772-1-git-send-email-peter.maydell@linaro.org> References: <1391875084-12772-1-git-send-email-peter.maydell@linaro.org> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:8b0:1d0::1 Cc: Blue Swirl , qemu-devel@nongnu.org, Aurelien Jarno Subject: [Qemu-devel] [PULL 21/29] rules.mak: Link with C++ if we have a C++ compiler X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: peter.maydell@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.128.172 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 If we have a C++ compiler available, link with it, because we might be linking some C++ files in. This allows us to include C++ object files in the QEMU binary proper. Signed-off-by: Peter Maydell Reviewed-by: Richard Henderson --- rules.mak | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/rules.mak b/rules.mak index cd9187e..391d6eb 100644 --- a/rules.mak +++ b/rules.mak @@ -27,8 +27,12 @@ QEMU_INCLUDES += -I$(