From patchwork Wed Sep 16 11:42:13 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Yong <10walls@gmail.com> X-Patchwork-Id: 518367 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]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id A143A140134 for ; Wed, 16 Sep 2015 21:42:36 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b=t40FQyFM; dkim-atps=neutral DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :message-id:date:from:mime-version:to:subject:content-type; q= dns; s=default; b=f2LIe6gajtTqMUT+WMtFAUsgsdFRQaDbkZrae+3o6O/YCV hZDF12JogSkAz4AYaxuD07rnbc3vZJqdU/yvW4J7AwPzYpuG8kJJq3Ua/75vzfCW 3szZmQFzPBMVjlCm94ok1dW//tuc3CHwKlFr/I6JSd2AEViOfv/KdMlSA/mGk= 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 :message-id:date:from:mime-version:to:subject:content-type; s= default; bh=B1ylFJcMsLGrO7s6WGdgYhQ00qM=; b=t40FQyFMGf+aRb3wctTc 3LYqyQufvIZUmHAR8n2RIeaww2n3jg/MCnd2y1wVItBJGR/FJK3H63bK3puZvc8l n+DplcE3cYJq1b1csRjSYrAQCJG3Zb91Dc37XNPZeJ8fbaGgdGZxnkKSPMx+/7lK fU6mw6RnWEcbCIWEqWFF9ZM= Received: (qmail 110647 invoked by alias); 16 Sep 2015 11:42:30 -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 110636 invoked by uid 89); 16 Sep 2015 11:42:29 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=BAYES_00, FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-pa0-f52.google.com Received: from mail-pa0-f52.google.com (HELO mail-pa0-f52.google.com) (209.85.220.52) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Wed, 16 Sep 2015 11:42:28 +0000 Received: by pacfv12 with SMTP id fv12so211564680pac.2 for ; Wed, 16 Sep 2015 04:42:26 -0700 (PDT) X-Received: by 10.67.12.166 with SMTP id er6mr58668071pad.40.1442403746579; Wed, 16 Sep 2015 04:42:26 -0700 (PDT) Received: from ?IPv6:2001:e68:4074:444c:e01f:8e6d:cdca:d0e5? ([2001:e68:4074:444c:e01f:8e6d:cdca:d0e5]) by smtp.gmail.com with ESMTPSA id e6sm27591330pas.35.2015.09.16.04.42.24 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 16 Sep 2015 04:42:25 -0700 (PDT) Message-ID: <55F95595.2040907@gmail.com> Date: Wed, 16 Sep 2015 19:42:13 +0800 From: JonY <10walls@gmail.com> User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:25.4) Gecko/20150524 FossaMail/25.1.5 MIME-Version: 1.0 To: Gcc Patch List Subject: [PATCH] Fix Cygwin bootstrap failing to find win32 libraries X-IsSubscribed: yes libgcc is failing to find kerne32 etc during the 2nd stage when bootstraping, explicitly add w32api directory to search path. Patch OK? diff --git a/gcc/config/i386/cygwin.h b/gcc/config/i386/cygwin.h index 2a2a0bf..fd3bc0a 100644 --- a/gcc/config/i386/cygwin.h +++ b/gcc/config/i386/cygwin.h @@ -39,6 +39,7 @@ along with GCC; see the file COPYING3. If not see #undef STARTFILE_SPEC #define STARTFILE_SPEC "\ + -L%R/usr/lib/w32api \ %{!shared: %{!mdll: crt0%O%s \ %{pg:gcrt0%O%s}}}\ %{shared:crtbeginS.o%s;:crtbegin.o%s} \