From patchwork Sun Jun 30 21:09:27 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lewis Hyatt X-Patchwork-Id: 1954451 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20230601 header.b=iHGW8JEM; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=2620:52:3:1:0:246e:9693:128c; helo=server2.sourceware.org; envelope-from=gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=patchwork.ozlabs.org) Received: from server2.sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4WC1yy0GYqz1xpc for ; Mon, 1 Jul 2024 07:09:59 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 1EA92388186B for ; Sun, 30 Jun 2024 21:09:58 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-qk1-x736.google.com (mail-qk1-x736.google.com [IPv6:2607:f8b0:4864:20::736]) by sourceware.org (Postfix) with ESMTPS id 2AA823858C39 for ; Sun, 30 Jun 2024 21:09:37 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 2AA823858C39 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 2AA823858C39 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::736 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1719781778; cv=none; b=YKq7S/gkOuJkxpY7nknMoiXMPVvkja9MdFRdCIEG2PD8dV04QXH4F9k6MiYkD952H089zXhruFP/4PKXhHvr7r122TW1g9JuT9zm1sO5b7oWbjMu7hwYbDYRKJ2/aogeJSZdC38gv0rddtjvTirkP8dnvvxph5T3Fy8NVo66WEk= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1719781778; c=relaxed/simple; bh=M6Wdp+uPdAWKxM/GZh6casD4CTtuA8OHB6LDKkPKh1s=; h=DKIM-Signature:From:To:Subject:Date:Message-Id:MIME-Version; b=eHWQWvQTOAQt1FGXtFQv6o8PFRzuPyImPu6IhwwpW1SnPP0zlZdOYhLLPW8HQDSBNEQIfz356TWXWKA0AwXOZwtmvjGgL8zN0V4LmkA14ysQA8/UJntSky3uwI1qrgX6kc9TL9NuaPhdS3+ZOlfPLsafJFJSnk6Kv8+EZT1yDRE= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-qk1-x736.google.com with SMTP id af79cd13be357-79d7ea28742so78719385a.2 for ; Sun, 30 Jun 2024 14:09:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1719781776; x=1720386576; darn=gcc.gnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=2hBwCeY3j8PjjB3iqEQD/sDEV23F2YzHm1SalIO6RHw=; b=iHGW8JEM1WDkaRnlKvIZPveigdzZufiomAR0RUq61uJPTZsjoA+ZA8ye77mQ5aVBu2 b8uC6kIvhfxBvdCE5u2oWzkvUaymdhn/7czCyBWJ8y81qIq04EZBfzgcCoVCIQAboXNE B1Yh2Z2XA0A3fT5UWpmfvq8NH9/syzNedDekURkmejcc6HWcdkqSp7BTdW0oOBc1h8Iz TCRdkgpSpNxPOmKaF506ALVVLKFELgnAUqQLhuI24C7EUBOwJWHiKi0kof43BSpYyycA qT5N2NBdHtQDzsXEUTZ3n7c4tfFpHy41PGag28cKe+jXm9Af+B2UERenD8VqBYPBXPjb Mtow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719781776; x=1720386576; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=2hBwCeY3j8PjjB3iqEQD/sDEV23F2YzHm1SalIO6RHw=; b=dT9Bs5lqLzkyh/IaJgD/kc4/htO9GiJIcRbchbghMaW21+um+z9sDKxXl1L2JX8TOa CwbfF9cb9+JMrbYscP4M4vmrduO9hp1FrvEzuFxUnnm+cvXHwoG2mfRgJq64NnsoFajz yF9/p9sln7XENjrMbJqp1jd0tQHxIn9zHVM34DsrahSUAY+hRy63jLaSPyhXBwLDXghW IwLtJPoWsowubcqmRuqaAj28eiITrw9K1J9eS5P0tyt7SyFcuhyIs38iXdstZhFYrX/R Cop8Kkt1CGCvZw8gdD7cwuOHVcEqDTWGjf5i0oAVM3VVl4MRsdHwWsHaBjDFSKkBLvPF dPzQ== X-Gm-Message-State: AOJu0YzmcChUBQcVYijCfKC991HxJZC4Nc/6lZgAbwqs7tyCk/u5sxuW ghb/m+DDBl2E5daRS/E8fj1GQbOs8yGGqivjVbOqLAZzPGkvr4wGL2Sc4w== X-Google-Smtp-Source: AGHT+IHC+W4tVKAVfCSI5560ZLaat9N42evBeA2Q+paS2gXD1uG1R/vdro3de+LNn+LyEsLw5Vq3Mw== X-Received: by 2002:a05:620a:44d1:b0:795:ca3c:2f43 with SMTP id af79cd13be357-79d7ba7f8aamr533460085a.56.1719781776411; Sun, 30 Jun 2024 14:09:36 -0700 (PDT) Received: from localhost.localdomain (pool-100-35-171-69.nwrknj.fios.verizon.net. [100.35.171.69]) by smtp.gmail.com with ESMTPSA id af79cd13be357-79d692edd54sm284096485a.97.2024.06.30.14.09.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 30 Jun 2024 14:09:35 -0700 (PDT) From: Lewis Hyatt To: gcc-patches@gcc.gnu.org Cc: Lewis Hyatt Subject: [PATCH] build: Fix "make install" for MinGW Date: Sun, 30 Jun 2024 17:09:27 -0400 Message-Id: <20240630210927.1884960-1-lhyatt@gmail.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Spam-Status: No, score=-3038.8 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org Hello- I noticed this while trying to test another patch on Windows (using the MSYS2 environment). Tested that it fixes the issue for x86_64-w64-mingw32 and doesn't affect anything for x86_64-pc-linux-gnu. It looks like the same fix for C was applied back in r11-702. OK? Thanks... -Lewis -- >8 -- Since r8-4925, the "make install" recipe generates a path which can start with "//", causing problems for some Windows environments. Fix by removing the redundant slash. --- gcc/cp/Make-lang.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/cp/Make-lang.in b/gcc/cp/Make-lang.in index 026cf8d7088..e792ea4ddf3 100644 --- a/gcc/cp/Make-lang.in +++ b/gcc/cp/Make-lang.in @@ -344,7 +344,7 @@ c++.install-plugin: installdirs # Install import library. ifeq ($(plugin_implib),yes) $(mkinstalldirs) $(DESTDIR)$(plugin_resourcesdir) - $(INSTALL_DATA) cc1plus$(exeext).a $(DESTDIR)/$(plugin_resourcesdir)/cc1plus$(exeext).a + $(INSTALL_DATA) cc1plus$(exeext).a $(DESTDIR)$(plugin_resourcesdir)/cc1plus$(exeext).a endif c++.uninstall: