From patchwork Thu Nov 15 14:22:21 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Siddhesh Poyarekar X-Patchwork-Id: 199298 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) by ozlabs.org (Postfix) with SMTP id CE6212C03FB for ; Fri, 16 Nov 2012 01:23:34 +1100 (EST) Comment: DKIM? See http://www.dkim.org DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=gcc.gnu.org; s=default; x=1353594215; h=Comment: DomainKey-Signature:Received:Received:Received:Received:Received: Date:From:To:Subject:Message-ID:Mime-Version:Content-Type: Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:Sender:Delivered-To; bh=Wl9UOlLwRcpBRnIFnkGq 37xt9f0=; b=dHkLQUQaf/f5UR5PYyrn3ekqY5rcNq2YVjcecVgaDl5qqOx8mss2 KOpswRhUvANX/0LQ+VsCm2YBl/sL9yoMF0XHrXPlZqRfLgKkIvCrAUFBhMmuoAlc QfLjT9Fxd7hmznyaTXGyGvWO1+0auLLBjLF0OJyLzwStsXwzrEF8DaY= Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=gcc.gnu.org; h=Received:Received:X-SWARE-Spam-Status:X-Spam-Check-By:Received:Received:Received:Date:From:To:Subject:Message-ID:Mime-Version:Content-Type:X-IsSubscribed:Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help:Sender:Delivered-To; b=ADq6dEfymZ9sUBaWrBQjgavcSscrTy8nnk6XraMt8+Bm6Jp2cKCWQz7Sqtr/XV XFfDY5/xmXFTIi61P9O5UmyCTdnmVT35wVu23PlXFVjp+nWoaFOHbEHoC0Czchr4 KZx33L2tyCHmwVesFp/xEtRKNwILh/jOFfANWdxkIO/6E=; Received: (qmail 16458 invoked by alias); 15 Nov 2012 14:23:29 -0000 Received: (qmail 16443 invoked by uid 22791); 15 Nov 2012 14:23:26 -0000 X-SWARE-Spam-Status: No, hits=-7.0 required=5.0 tests=AWL, BAYES_00, KHOP_RCVD_UNTRUST, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, SPF_HELO_PASS X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 15 Nov 2012 14:23:19 +0000 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id qAFENIsL020479 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Thu, 15 Nov 2012 09:23:19 -0500 Received: from spoyarek (spoyarek.pnq.redhat.com [10.65.192.188]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id qAFENHEa029333 for ; Thu, 15 Nov 2012 09:23:18 -0500 Date: Thu, 15 Nov 2012 19:52:21 +0530 From: Siddhesh Poyarekar To: gcc-patches@gcc.gnu.org Subject: [PATCH] Disable libsanitizer if C++ is not being built Message-ID: <20121115195221.2d98bb1e@spoyarek> Mime-Version: 1.0 X-IsSubscribed: yes Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Hi, Current HEAD fails build when --enable-languages=c, i.e. C++ is not being built. Attached patch fixes this. Regards, Siddhesh ChangeLog: 2012-11-15 Siddhesh Poyarekar * configure.ac: Disable libsanitizer if we're not building C++. * configure: Regenerate. diff --git a/configure b/configure index d72d4f9..16bbaa8 100755 --- a/configure +++ b/configure @@ -6437,11 +6437,11 @@ case ,${enable_languages},:${enable_objc_gc} in ;; esac -# Disable libitm if we're not building C++ +# Disable libitm and libsanitizer if we're not building C++ case ,${enable_languages}, in *,c++,*) ;; *) - noconfigdirs="$noconfigdirs target-libitm" + noconfigdirs="$noconfigdirs target-libitm target-libsanitizer" ;; esac diff --git a/configure.ac b/configure.ac index 24ea7e5..cd6721e 100644 --- a/configure.ac +++ b/configure.ac @@ -2008,11 +2008,11 @@ case ,${enable_languages},:${enable_objc_gc} in ;; esac -# Disable libitm if we're not building C++ +# Disable libitm and libsanitizer if we're not building C++ case ,${enable_languages}, in *,c++,*) ;; *) - noconfigdirs="$noconfigdirs target-libitm" + noconfigdirs="$noconfigdirs target-libitm target-libsanitizer" ;; esac