* ld-auto-import/auto-import.exp: Use $ld to link the dll for
authorNick Clifton <nickc@redhat.com>
Wed, 20 Feb 2008 17:51:18 +0000 (17:51 +0000)
committerNick Clifton <nickc@redhat.com>
Wed, 20 Feb 2008 17:51:18 +0000 (17:51 +0000)
        cygwin, not $CC.

ld/testsuite/ChangeLog
ld/testsuite/ld-auto-import/auto-import.exp

index 972e53ae3701dcc0a97be853cf75cac1ec2f5361..14e62c7702c96aad9c511137e341083a58e4d51d 100644 (file)
@@ -1,3 +1,8 @@
+2008-02-20  Pedro Alves  <pedro_alves@portugalmail.pt>
+
+       * ld-auto-import/auto-import.exp: Use $ld to link the dll for
+       cygwin, not $CC.
+
 2008-02-18  Hans-Peter Nilsson  <hp@axis.com>
 
        * lib/ld-lib.exp (run_dump_test): Don't apply prune_warnings
index 0192345e7e92738df76e3a33261ea2c38b08c22e..5b3a484598e22e152fad4635b9aced7575e97ba6 100644 (file)
@@ -1,5 +1,5 @@
 # Expect script for ld-auto-import tests
-#   Copyright 2002, 2007
+#   Copyright 2002, 2007, 2008
 #   Free Software Foundation, Inc.
 #
 # This file is part of the GNU Binutils.
@@ -122,7 +122,7 @@ if [istarget *-pc-cygwin] {
     if ![ld_compile "$CC $CFLAGS $SHCFLAG" $srcdir/$subdir/dll.c $tmpdir/dll.o] {
        fail "compiling shared lib"
     }
-    if ![ld_special_link "$CC -shared --enable-auto-import --out-implib=$tmpdir/libstandard.dll.a" $tmpdir/dll.dll "$tmpdir/dll.o $MYLIBS"] {
+    if ![ld_special_link "$ld -shared --enable-auto-import --out-implib=$tmpdir/libstandard.dll.a" $tmpdir/dll.dll "$tmpdir/dll.o $MYLIBS"] {
        fail "linking shared lib"
     }