From 84fe5e5c412dccda48c87c775672433d5034b160 Mon Sep 17 00:00:00 2001 From: Jonathan Yong <10walls@gmail.com> Date: Mon, 21 Sep 2015 09:58:44 +0000 Subject: [PATCH] cygwin.h (STARTFILE_SPEC): Explicitly search sysroot/usr/lib/32api for additional win32 libraries... 2015-09-21 Jonathan Yong <10walls@gmail.com> * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search sysroot/usr/lib/32api for additional win32 libraries, fixes failing Cygwin bootstrapping. From-SVN: r227962 --- gcc/ChangeLog | 6 ++++++ gcc/config/i386/cygwin.h | 1 + 2 files changed, 7 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index d9682b70bc9..6c79ba8833d 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2015-09-21 Jonathan Yong <10walls@gmail.com> + + * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search + sysroot/usr/lib/32api for additional win32 libraries, + fixes failing Cygwin bootstrapping. + 2015-09-21 Oleg Endo * doc/invoke.texi (SH Options): Undocument SH5/SH64 related options. diff --git a/gcc/config/i386/cygwin.h b/gcc/config/i386/cygwin.h index 2186937849a..d1b6bc51b53 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} \ -- 2.30.2