aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2008-02-20 17:51:18 +0000
committerNick Clifton <nickc@redhat.com>2008-02-20 17:51:18 +0000
commit0562db2685e98b6ddd53786dc057a9b31f37f1d3 (patch)
tree238735cbd8d0165548d1a3212db856b35f59bd01
parent515ef31dec50185cc5d8a6f88b51832bfd259e87 (diff)
downloadgdb-0562db2685e98b6ddd53786dc057a9b31f37f1d3.zip
gdb-0562db2685e98b6ddd53786dc057a9b31f37f1d3.tar.gz
gdb-0562db2685e98b6ddd53786dc057a9b31f37f1d3.tar.bz2
* ld-auto-import/auto-import.exp: Use $ld to link the dll for
cygwin, not $CC.
-rw-r--r--ld/testsuite/ChangeLog5
-rw-r--r--ld/testsuite/ld-auto-import/auto-import.exp4
2 files changed, 7 insertions, 2 deletions
diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog
index 972e53a..14e62c7 100644
--- a/ld/testsuite/ChangeLog
+++ b/ld/testsuite/ChangeLog
@@ -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
diff --git a/ld/testsuite/ld-auto-import/auto-import.exp b/ld/testsuite/ld-auto-import/auto-import.exp
index 0192345..5b3a484 100644
--- a/ld/testsuite/ld-auto-import/auto-import.exp
+++ b/ld/testsuite/ld-auto-import/auto-import.exp
@@ -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"
}