From 45394486ba9528f5af50a14bc0cb63756b4a0214 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Mon, 23 May 2011 09:13:57 +0000 Subject: [PATCH] * ld-elf/shared.exp: Revert previous delta. Do not build libraries in a non-native environment. --- ld/testsuite/ChangeLog | 5 +++++ ld/testsuite/ld-elf/shared.exp | 12 +++++++----- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog index 57dd14159c9..48f0f330b78 100644 --- a/ld/testsuite/ChangeLog +++ b/ld/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2011-05-23 Nick Clifton + + * ld-elf/shared.exp: Revert previous delta. Do not build + libraries in a non-native environment. + 2011-05-23 Alan Modra PR 12763 diff --git a/ld/testsuite/ld-elf/shared.exp b/ld/testsuite/ld-elf/shared.exp index 016d2709742..eea9c7e9310 100644 --- a/ld/testsuite/ld-elf/shared.exp +++ b/ld/testsuite/ld-elf/shared.exp @@ -21,6 +21,13 @@ # 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" "" -- 2.30.2