From patchwork Tue Jun 18 21:34:04 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Forney X-Patchwork-Id: 1118354 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=gcc.gnu.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=gcc-patches-return-503215-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=mforney.org Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="Iac5DERI"; dkim=pass (2048-bit key; unprotected) header.d=mforney-org.20150623.gappssmtp.com header.i=@mforney-org.20150623.gappssmtp.com header.b="Tp5L3Byb"; dkim-atps=neutral Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 45T1Ym1zwDz9s9y for ; Wed, 19 Jun 2019 07:34:17 +1000 (AEST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:subject:date:message-id:mime-version :content-transfer-encoding; q=dns; s=default; b=jOrN5ZYUS/Ev6b1b paOk9VLu+MGM9BSGMFkbrGy1vtfb1J4OvRVSWVGwWrqOsNskavtaXBtDKhjyWkXj em95gm6mGk0vh/4j6UpfYmRq0EEGZgWCtdoQx1QRamjwQbLs9APD8ZwttirjVfm3 EDP3HU4Lgx98oJYv6kRztX8ySzA= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:subject:date:message-id:mime-version :content-transfer-encoding; s=default; bh=ytaqEjqfhUjFOQCJUce3Ci d+toI=; b=Iac5DERI2wAvJBdPsVEN/Sq0ZFgoFn9RQh6PdE5E83YkSBO/N0+2Vs /b3SDaR8tt4RhAlgkGnqc0RUChQKo/UidPlmi7U23vmMLUexHtF/+0amk9TcwXGQ k5xRhY6T+A8yO7MQvt1mAjmGi7yXC4ml+PsuatmySIiMF/MuE+Ka8= Received: (qmail 74029 invoked by alias); 18 Jun 2019 21:34:10 -0000 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 Received: (qmail 74016 invoked by uid 89); 18 Jun 2019 21:34:10 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-26.9 required=5.0 tests=BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 spammy=1986, HX-Received:7990, HX-Spam-Relays-External:209.85.210.194, H*RU:209.85.210.194 X-HELO: mail-pf1-f194.google.com Received: from mail-pf1-f194.google.com (HELO mail-pf1-f194.google.com) (209.85.210.194) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 18 Jun 2019 21:34:08 +0000 Received: by mail-pf1-f194.google.com with SMTP id t16so8369710pfe.11 for ; Tue, 18 Jun 2019 14:34:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mforney-org.20150623.gappssmtp.com; s=20150623; h=from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=yABZvwyvh+U29NhtXFajWqoetcwp9cg2Iscs3Z5DI9Q=; b=Tp5L3BybS4RBhyDdpAdHY0N/lQfmnXsaxY6c/GfAWiaHPTV4On4IPoK3+Ee4iTzBO0 IIOyHkPHVJIrjZ84lct2OZs4W+aPSjD3Y4fu7STp8fSvtPUGN+EjwdfVgqSde/U7ajcD R7ZlIWLs1tavH4k/PNHIN6VQDz5PR16POlpkj5GZJW3JFDBv9a7Id6MevE7T9Cdp74PM sumFEA3tQCDrDtIAXZKURURyFSytFrYAJAg/tIyUSFCW5hevzwZims0/GHPKjpkKQbvm yk1P4OW4rEseA4BmXJH0sLw6VlN8GUZH07j8AA6p6R1TpzyuMF3XpftB/YKqshdJZaQL AQyg== Received: from localhost ([2601:647:5180:35d7::cf52]) by smtp.gmail.com with ESMTPSA id k4sm6865025pfk.42.2019.06.18.14.34.05 for (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Tue, 18 Jun 2019 14:34:05 -0700 (PDT) From: Michael Forney To: gcc-patches@gcc.gnu.org Subject: [PATCH] Add CXX_FOR_BUILD to HOST_EXPORTS Date: Tue, 18 Jun 2019 14:34:04 -0700 Message-Id: <20190618213404.11880-1-mforney@mforney.org> MIME-Version: 1.0 gcc/configure needs this to generate auto-build.h using the right C++ compiler. 2019-06-18 Michael Forney * Makefile.tpl (HOST_EXPORTS): Add CXX_FOR_BUILD. * Makefile.in: Regenerate. --- I ran into this since I needed to pass some special flags to the build C++ compiler for my system and was getting the mysterious error make[3]: *** No rule to make target 'auto-build.h', needed by 'build/genmddeps.o'. Stop. Turns out this was because the sub-configure run by gcc/configure was failing because my CXX_FOR_BUILD was being ignored, but it is not treated as a fatal error (#65794). The configure directory containing config.log is subsequently deleted, making it difficult to figure out what actually went wrong. Makefile.in | 1 + Makefile.tpl | 1 + 2 files changed, 2 insertions(+) diff --git a/Makefile.in b/Makefile.in index 02cc7a39094..86c0c6d5b2d 100644 --- a/Makefile.in +++ b/Makefile.in @@ -198,6 +198,7 @@ HOST_EXPORTS = \ AR="$(AR)"; export AR; \ AS="$(AS)"; export AS; \ CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \ + CXX_FOR_BUILD="$(CXX_FOR_BUILD)"; export CXX_FOR_BUILD; \ DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \ LD="$(LD)"; export LD; \ LDFLAGS="$(STAGE1_LDFLAGS) $(LDFLAGS)"; export LDFLAGS; \ diff --git a/Makefile.tpl b/Makefile.tpl index 1cdc023c82f..efed1511750 100644 --- a/Makefile.tpl +++ b/Makefile.tpl @@ -201,6 +201,7 @@ HOST_EXPORTS = \ AR="$(AR)"; export AR; \ AS="$(AS)"; export AS; \ CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \ + CXX_FOR_BUILD="$(CXX_FOR_BUILD)"; export CXX_FOR_BUILD; \ DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \ LD="$(LD)"; export LD; \ LDFLAGS="$(STAGE1_LDFLAGS) $(LDFLAGS)"; export LDFLAGS; \