OSDN Git Service

* config/i386/cygwin.h: Move W32API search to LINK_SPEC to ensure that this
authorcgf <cgf@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 25 Apr 2001 22:23:33 +0000 (22:23 +0000)
committercgf <cgf@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 25 Apr 2001 22:23:33 +0000 (22:23 +0000)
directory is always searched.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@41556 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/i386/cygwin.h

index 7e58efa..0abb29a 100644 (file)
@@ -1,3 +1,8 @@
+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
index ba51a6f..d064cb2 100644 (file)
@@ -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} \