From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 46254 invoked by alias); 7 Aug 2018 18:10:14 -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 46223 invoked by uid 89); 7 Aug 2018 18:10:14 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-25.5 required=5.0 tests=AWL,BAYES_00,GIT_PATCH_0,GIT_PATCH_1,GIT_PATCH_2,GIT_PATCH_3,RCVD_IN_DNSWL_NONE,SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=consequences, IE, Hx-languages-length:1463, risk X-HELO: gateway33.websitewelcome.com Received: from gateway33.websitewelcome.com (HELO gateway33.websitewelcome.com) (192.185.146.87) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 07 Aug 2018 18:10:12 +0000 Received: from cm10.websitewelcome.com (cm10.websitewelcome.com [100.42.49.4]) by gateway33.websitewelcome.com (Postfix) with ESMTP id 85128FE2D for ; Tue, 7 Aug 2018 13:10:11 -0500 (CDT) Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with SMTP id n6QNfTg5yBcCXn6Qgf3lJI; Tue, 07 Aug 2018 13:10:11 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tromey.com; s=default; h=Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:MIME-Version :Content-Type:Content-Transfer-Encoding:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=TNzTyGdl5lt2kMD4i5FgqxHOnOuBMp9McOZs7KG3zYs=; b=icomlh/WBHDKfR1ppERY8Bp9aR 7TB9TFGo1ix1HoYrYqTdOOmyOPt4pBkSiHZIskpLkiTBS6o0JpvAcZLDlemV5wkgInVVLcQ25J1KU 5YxXf0DStP7RSflzpDkYijEBi; Received: from 75-166-85-72.hlrn.qwest.net ([75.166.85.72]:51244 helo=bapiya.Home) by box5379.bluehost.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.91) (envelope-from ) id 1fn6QN-002wgA-94; Tue, 07 Aug 2018 13:09:39 -0500 From: Tom Tromey To: gdb-patches@sourceware.org Cc: Tom Tromey Subject: [PATCH] Allow CPPFLAGS to be set on the make command line Date: Tue, 07 Aug 2018 18:10:00 -0000 Message-Id: <20180807180934.13645-1-tom@tromey.com> X-SW-Source: 2018-08/txt/msg00121.txt.bz2 While looking into PR build/8751 (which seems to be fixed), I noticed that it's not possible to change CPPFLAGS for gdb on the "make" command line. It's reasonable to want to do this sometimes, and I think this patch should suffice. gdb/ChangeLog 2018-08-07 Tom Tromey * Makefile.in (CPPFLAGS): New variable. (INTERNAL_CPPFLAGS): Use it. --- gdb/ChangeLog | 5 +++++ gdb/Makefile.in | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gdb/Makefile.in b/gdb/Makefile.in index 8c744d70c0..7ff817d790 100644 --- a/gdb/Makefile.in +++ b/gdb/Makefile.in @@ -557,6 +557,7 @@ PROFILE_CFLAGS = @PROFILE_CFLAGS@ # when running make. I.E.: "make CFLAGS=-Wmissing-prototypes". CFLAGS = @CFLAGS@ CXXFLAGS = @CXXFLAGS@ +CPPFLAGS = @CPPFLAGS@ # Set by configure, for e.g. expat. Python installations are such that # C headers are included using their basename (for example, we #include @@ -564,7 +565,7 @@ CXXFLAGS = @CXXFLAGS@ # are sometimes a little generic, we think that the risk of collision # with other header files is high. If that happens, we try to mitigate # a bit the consequences by putting the Python includes last in the list. -INTERNAL_CPPFLAGS = @CPPFLAGS@ @GUILE_CPPFLAGS@ @PYTHON_CPPFLAGS@ +INTERNAL_CPPFLAGS = $(CPPFLAGS) @GUILE_CPPFLAGS@ @PYTHON_CPPFLAGS@ # INTERNAL_CFLAGS is the aggregate of all other *CFLAGS macros. INTERNAL_CFLAGS_BASE = \ -- 2.13.6