Add support for cygwin libraries
authorPhil Blundell <philb@gnu.org>
Fri, 12 Jan 2001 12:43:10 +0000 (12:43 +0000)
committerPhil Blundell <philb@gnu.org>
Fri, 12 Jan 2001 12:43:10 +0000 (12:43 +0000)
ld/ChangeLog
ld/configure.host

index a11b596..a2fc733 100644 (file)
@@ -1,3 +1,7 @@
+2001-01-12  Philip Blundell  <pb@futuretv.com>
+
+       * configure.host: Set HOSTING_LIBS appropriately for ix86-cygwin.
+
 2001-01-10  Kazu Hirata  <kazu@hxi.com>
 
        * scripttempl/h8300.sc: Fix formatting.  Fix a comment typo.
index d83e29f..be14e01 100644 (file)
@@ -125,6 +125,10 @@ i[3456]86-pc-interix*)
   HOSTING_LIBS='`if [ -f ../gcc/libgcc.a ] ; then echo ../gcc/libgcc.a ; else ${CC} -print-libgcc-file-name; fi` -L $$X/local_bin -L $$INTERIX_ROOT/usr/lib -lc -lcpsx -lc -lcpsx $$INTERIX_ROOT/usr/lib/psxdll.a $$INTERIX_ROOT/usr/lib/psxdll2.a'
   ;;
 
+i[3456]86-*-cygwin*)
+  HOSTING_LIBS='`if [ -f ../gcc/libgcc.a ] ; then echo ../gcc/libgcc.a ; else ${CC} -print-libgcc-file-name; fi` -lcygwin -luser32 -lkernel32 -ladvapi32 -lshell32 `if [ -f ../gcc/libgcc.a ] ; then echo ../gcc/libgcc.a ; else ${CC} -print-libgcc-file-name; fi`'
+  ;;
+
 ia64-*-linux-gnu*)
   HOSTING_CRT0='-dynamic-linker `egrep "ld-linux-ia64.so" \`${CC} --print-file-name=specs\` | sed -e "s,.*-dynamic-linker[     ][      ]*\(.*/ld-linux-ia64.so..\).*,\1,"` `${CC} --print-file-name=crt1.o` `${CC} --print-file-name=crti.o` `if [ -f ../gcc/crtbegin.o ]; then echo ../gcc/crtbegin.o; else ${CC} --print-file-name=crtbegin.o; fi`'
   HOSTING_LIBS='`if [ -f ../gcc/libgcc.a ] ; then echo ../gcc/libgcc.a ; else ${CC} -print-libgcc-file-name; fi` -L`dirname \`${CC} --print-file-name=libc.so\`` -lc `if [ -f ../gcc/libgcc.a ] ; then echo ../gcc/libgcc.a ; else ${CC} -print-libgcc-file-name; fi` `if [ -f ../gcc/crtend.o ]; then echo ../gcc/crtend.o; else ${CC} --print-file-name=crtend.o; fi` `${CC} --print-file-name=crtn.o`'