From patchwork Wed Feb 5 17:28:34 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 24218 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 56F6C20675 for ; Wed, 5 Feb 2014 17:28:50 +0000 (UTC) Received: by mail-ob0-f199.google.com with SMTP id vb8sf3412118obc.6 for ; Wed, 05 Feb 2014 09:28:49 -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:cc:subject :date:message-id:in-reply-to:references:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=D9gBIUiZFSsjuG6OaDRZTshtiMjcpKBM4qvGhL4nkNM=; b=LUzfHCDEnfuZiKAjrTYd48ooBZnNOY7TQd18NBn7hhYn5jUSqz/yOkBJUndECZX/AN zqc59LkrXgPUgHxWfsZ20ASyQzzTn9W7tznsnL5He71Pb/VrB0SLWokAftTDabJYFZT6 t72jjyZ4UpW7qrZouiCw7aHLvwWknoyjZ5+Tzh35IyI4L6ldQApShc+1uXo2Pscaj9Gf IrHXbB3nExhAChPGqf4k1I7JtMbsvW23rW15URycADbs2V4mqWxrDRmnW2gyzeAFBei/ 9Y1HhT5g45NJj1rd7R0dknI7MC+dbLgVSBl5nAJLpJ0dLN7exBlTSRFqRnWw3DnQsI+S NgfA== X-Gm-Message-State: ALoCoQm4NV8riBL9kiFhjb47ZajGwf/WpHcuN7kgkiBDpAp9dhtiF2IDZQKtsHMfF+uLjhOb7ivV X-Received: by 10.42.107.67 with SMTP id c3mr1022674icp.0.1391621329440; Wed, 05 Feb 2014 09:28:49 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.80.149 with SMTP id c21ls210033qgd.52.gmail; Wed, 05 Feb 2014 09:28:49 -0800 (PST) X-Received: by 10.52.106.166 with SMTP id gv6mr176303vdb.86.1391621329367; Wed, 05 Feb 2014 09:28:49 -0800 (PST) Received: from mail-vc0-f171.google.com (mail-vc0-f171.google.com [209.85.220.171]) by mx.google.com with ESMTPS id uw4si2077234vdc.131.2014.02.05.09.28.48 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 05 Feb 2014 09:28:48 -0800 (PST) Received-SPF: neutral (google.com: 209.85.220.171 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.171; Received: by mail-vc0-f171.google.com with SMTP id le5so535312vcb.16 for ; Wed, 05 Feb 2014 09:28:48 -0800 (PST) X-Received: by 10.52.185.196 with SMTP id fe4mr1491072vdc.27.1391621328628; Wed, 05 Feb 2014 09:28:48 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.220.174.196 with SMTP id u4csp67634vcz; Wed, 5 Feb 2014 09:28:48 -0800 (PST) X-Received: by 10.180.160.206 with SMTP id xm14mr3425185wib.25.1391621326471; Wed, 05 Feb 2014 09:28:46 -0800 (PST) Received: from mnementh.archaic.org.uk (mnementh.archaic.org.uk. [2001:8b0:1d0::1]) by mx.google.com with ESMTPS id h44si35361113eew.143.2014.02.05.09.28.43 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Wed, 05 Feb 2014 09:28:46 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of pm215@archaic.org.uk designates 2001:8b0:1d0::1 as permitted sender) client-ip=2001:8b0:1d0::1; Received: from pm215 by mnementh.archaic.org.uk with local (Exim 4.80) (envelope-from ) id 1WB6H7-00023T-Oc; Wed, 05 Feb 2014 17:28:37 +0000 From: Peter Maydell To: qemu-devel@nongnu.org Cc: patches@linaro.org, Alexander Graf , Michael Matz , Claudio Fontana , Dirk Mueller , Laurent Desnogues , kvmarm@lists.cs.columbia.edu, Richard Henderson , =?UTF-8?q?Alex=20Benn=C3=A9e?= , Christoffer Dall , Will Newton , Peter Crosthwaite , Paolo Bonzini Subject: [PATCH v3 2/5] rules.mak: Link with C++ if we have a C++ compiler Date: Wed, 5 Feb 2014 17:28:34 +0000 Message-Id: <1391621317-7866-3-git-send-email-peter.maydell@linaro.org> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1391621317-7866-1-git-send-email-peter.maydell@linaro.org> References: <1391621317-7866-1-git-send-email-peter.maydell@linaro.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.220.171 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 Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , 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$(