aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorChristopher Faylor <cgf@cygnus.com>2001-04-25 22:23:33 +0000
committerChristopher Faylor <cgf@gcc.gnu.org>2001-04-25 22:23:33 +0000
commit2baa545318da31467c7efe8836621e454870c4d0 (patch)
tree3a1751a058fd3b63bebb85bce5e24f28da05c20a /gcc
parent84e306b45a480df7ece37c21419192b243a4c322 (diff)
downloadgcc-2baa545318da31467c7efe8836621e454870c4d0.zip
gcc-2baa545318da31467c7efe8836621e454870c4d0.tar.gz
gcc-2baa545318da31467c7efe8836621e454870c4d0.tar.bz2
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
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/i386/cygwin.h8
2 files changed, 10 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 7e58efa..0abb29a 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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
diff --git a/gcc/config/i386/cygwin.h b/gcc/config/i386/cygwin.h
index ba51a6f..d064cb2e 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} \