* config/i386/cygwin.h: Fix -mno-cygwin search path for link.
authorChristopher Faylor <cgf@cygnus.com>
Tue, 30 Jan 2001 04:56:08 +0000 (04:56 +0000)
committerChristopher Faylor <cgf@gcc.gnu.org>
Tue, 30 Jan 2001 04:56:08 +0000 (04:56 +0000)
From-SVN: r39344

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

index d25d565eee4af94e6cd7bba024705b728b143f1e..1e3a829850b719ce71c449165113bae286f9dd83 100644 (file)
@@ -1,3 +1,7 @@
+Mon Jan 29 23:53:14 2001  Christopher Faylor <cgf@cygnus.com>
+
+       * config/i386/cygwin.h: Fix -mno-cygwin search path for link.
+
 2001-01-29  DJ Delorie  <dj@redhat.com>
 
        * combine.c (if_then_else_cond): Pass the correct mode to
index 825afb0d6da74a7183cc6e8c3cafbe8b2b7f6ca5..335504e64cecc3d23041ec5929de8a8f560b321f 100644 (file)
@@ -82,12 +82,13 @@ Boston, MA 02111-1307, USA. */
 #define LIBGCC_SPEC "%{mno-cygwin: %{mthreads:-lmingwthrd} -lmingw32} -lgcc %{mno-cygwin:-lmoldname -lmsvcrt}"
 
 #undef STARTFILE_SPEC
-#define STARTFILE_SPEC "%{shared|mdll: %{mno-cygwin:dllcrt2%O%s}} \
-  %{!shared: %{!mdll: %{!mno-cygwin:crt0%O%s} %{mno-cygwin:-L/usr/local/lib/mingw -L/usr/lib/mingw crt2%O%s} \
-  %{pg:gcrt0%O%s}}}"
 
 #undef CPP_SPEC
 #ifdef CROSS_COMPILE
+#define STARTFILE_SPEC "%{shared|mdll: %{mno-cygwin:dllcrt2%O%s}} \
+  %{!shared: %{!mdll: %{!mno-cygwin:crt0%O%s} \
+    %{mno-cygwin:-L../../../../i686-pc-cygwin/lib/mingw mingw/crt2%O%s} \
+  %{pg:gcrt0%O%s}}}"
 #define CPP_SPEC "%(cpp_cpu) %{posix:-D_POSIX_SOURCE} \
   -D__stdcall=__attribute__((__stdcall__)) \
   -D__cdecl=__attribute__((__cdecl__)) \
@@ -111,6 +112,9 @@ Boston, MA 02111-1307, USA. */
    %{!mno-win32:-DWIN32 -D_WIN32 -D__WIN32 -D__WIN32__ -DWINNT \
      -idirafter /usr/include/w32api}"
 #else
+#define STARTFILE_SPEC "%{shared|mdll: %{mno-cygwin:dllcrt2%O%s}} \
+  %{!shared: %{!mdll: %{!mno-cygwin:crt0%O%s} %{mno-cygwin:-L/usr/local/lib/mingw -L/usr/lib/mingw mingw/crt2%O%s} \
+  %{pg:gcrt0%O%s}}}"
 #define CPP_SPEC "%(cpp_cpu) %{posix:-D_POSIX_SOURCE} \
   -D__stdcall=__attribute__((__stdcall__)) \
   -D__cdecl=__attribute__((__cdecl__)) \