From 2baa545318da31467c7efe8836621e454870c4d0 Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Wed, 25 Apr 2001 22:23:33 +0000 Subject: [PATCH] cygwin.h: Move W32API search to LINK_SPEC to ensure that this directory is always searched. * config/i386/cygwin.h: Move W32API search to LINK_SPEC to ensure that this directory is always searched. From-SVN: r41556 --- gcc/ChangeLog | 5 +++++ gcc/config/i386/cygwin.h | 8 +++++--- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 7e58efaeb56..0abb29a96f3 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +Wed Apr 25 18:21:01 2001 Christopher Faylor + + * config/i386/cygwin.h: Move W32API search to LINK_SPEC to ensure that + this directory is always searched. + 2001-04-25 Richard Henderson * config/i386/i386.c (ix86_expand_epilogue): Properly compute size diff --git a/gcc/config/i386/cygwin.h b/gcc/config/i386/cygwin.h index ba51a6f576b..d064cb2eec1 100644 --- a/gcc/config/i386/cygwin.h +++ b/gcc/config/i386/cygwin.h @@ -112,7 +112,7 @@ Boston, MA 02111-1307, USA. */ " #undef STARTFILE_SPEC -#define STARTFILE_SPEC W32API_LIB "\ +#define STARTFILE_SPEC "\ %{shared|mdll: %{mno-cygwin:" MINGW_LIBS " mingw/dllcrt2%O%s}}\ %{!shared: %{!mdll: %{!mno-cygwin:crt0%O%s} %{mno-cygwin:" MINGW_LIBS " mingw/crt2%O%s}\ %{pg:gcrt0%O%s}}}\ @@ -147,13 +147,15 @@ Boston, MA 02111-1307, USA. */ ld, but that doesn't work just yet. */ #undef LIB_SPEC -#define LIB_SPEC "%{pg:-lgmon} \ +#define LIB_SPEC "\ + %{pg:-lgmon} \ %{!mno-cygwin:-lcygwin} \ %{mno-cygwin:%{mthreads:-lmingwthrd} -lmingw32} \ %{mwindows:-lgdi32 -lcomdlg32} \ -luser32 -lkernel32 -ladvapi32 -lshell32" -#define LINK_SPEC "%{mwindows:--subsystem windows} \ +#define LINK_SPEC W32API_LIB "\ + %{mwindows:--subsystem windows} \ %{mconsole:--subsystem console} \ %{shared: %{mdll: %eshared and mdll are not compatible}} \ %{shared: --shared} %{mdll:--dll} \ -- 2.30.2