libraries in a non-native environment.
+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
 
 
 # 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
 }
 
 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" ""