+Wed Apr 25 18:21:01 2001 Christopher Faylor <cgf@cygnus.com>
+
+ * config/i386/cygwin.h: Move W32API search to LINK_SPEC to ensure that
+ this directory is always searched.
+
2001-04-25 Richard Henderson <rth@redhat.com>
* config/i386/i386.c (ix86_expand_epilogue): Properly compute size
"
#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}}}\
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} \