* ld-elf/shared.exp: Revert previous delta. Do not build
authorNick Clifton <nickc@redhat.com>
Mon, 23 May 2011 09:13:57 +0000 (09:13 +0000)
committerNick Clifton <nickc@redhat.com>
Mon, 23 May 2011 09:13:57 +0000 (09:13 +0000)
libraries in a non-native environment.

ld/testsuite/ChangeLog
ld/testsuite/ld-elf/shared.exp

index 57dd14159c94ad2de49245ab40f4c609feb064a2..48f0f330b78b671454ab1b9186f0d478d15626af 100644 (file)
@@ -1,3 +1,8 @@
+2011-05-23  Nick Clifton  <nickc@redhat.com>
+
+       * ld-elf/shared.exp: Revert previous delta.  Do not build
+       libraries in a non-native environment.
+
 2011-05-23  Alan Modra  <amodra@gmail.com>
 
        PR 12763
index 016d27097425750a5099c7effc259e569e5f633b..eea9c7e931061c12b78ca4b1cf7d1bd64e7259cc 100644 (file)
 
 # Exclude non-ELF targets.
 
+# The following tests require running the executable generated by ld,
+# or enough of a build environment to create a fully linked executable.
+# This is not commonly available when testing a cross-built linker.
+if ![isnative] {
+    return
+}
+
 if ![is_elf_format] {
     return
 }
@@ -154,11 +161,6 @@ set build_tests {
 
 run_cc_link_tests $build_tests
 
-# The following tests require running the executable generated by ld.
-if ![isnative] {
-    return
-}
-
 set run_tests {
     {"Run normal with libfoo.so"
      "tmpdir/begin.o tmpdir/libfoo.so tmpdir/end.o" ""