aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/i386
diff options
context:
space:
mode:
authorChristopher Faylor <cgf@cygnus.com>2001-01-30 04:56:08 +0000
committerChristopher Faylor <cgf@cygnus.com>2001-01-30 04:56:08 +0000
commit4e309fa38851b8e5cc24c58309d0cdb39aa9a5cb (patch)
tree3c692d637d8f7e98088b612a5165dcff2886a736 /gcc/config/i386
parent46d607222f3b7b6fe2755cd65df1d4ad4b600b73 (diff)
* config/i386/cygwin.h: Fix -mno-cygwin search path for link.
git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@39344 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/i386')
-rw-r--r--gcc/config/i386/cygwin.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/gcc/config/i386/cygwin.h b/gcc/config/i386/cygwin.h
index 825afb0d6da..335504e64ce 100644
--- a/gcc/config/i386/cygwin.h
+++ b/gcc/config/i386/cygwin.h
@@ -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__)) \