summaryrefslogtreecommitdiffstats
path: root/newlib/testsuite/lib/flags.exp
diff options
context:
space:
mode:
authorJeff Johnston <jjohnstn@redhat.com>2005-07-05 00:11:50 +0000
committerJeff Johnston <jjohnstn@redhat.com>2005-07-05 00:11:50 +0000
commitcec1d3b41462de53d2e9dde53e4483c4ca03076f (patch)
tree045c67d3b6f0cd675583523ff941d34c77940c87 /newlib/testsuite/lib/flags.exp
parent0740b418fc878fde6d0d25afb16d367dd775f27d (diff)
downloadcygnal-cec1d3b41462de53d2e9dde53e4483c4ca03076f.tar.gz
cygnal-cec1d3b41462de53d2e9dde53e4483c4ca03076f.tar.bz2
cygnal-cec1d3b41462de53d2e9dde53e4483c4ca03076f.zip
2005-07-04 Mark Mitchell <mark@codesourcery.com>
* Makefile.am (site.exp): Set tmpdir. * Makefile.in: Regenerated. * testsuite/lib/checkoutput.exp (newlib_check_output): Put executables in $tmpdir. * testsuite/lib/flags.exp (libgloss_link_flags): Use the original libgloss version if not running in the build directory. * testsuite/lib/newlib.exp (newlib_init): Put testglue.o in $tmpdir. * testsuite/lib/passfail.exp (newlib_pass_fail): Put executables in $tmpdir.
Diffstat (limited to 'newlib/testsuite/lib/flags.exp')
-rw-r--r--newlib/testsuite/lib/flags.exp8
1 files changed, 8 insertions, 0 deletions
diff --git a/newlib/testsuite/lib/flags.exp b/newlib/testsuite/lib/flags.exp
index f6bffde1f..ebc69286f 100644
--- a/newlib/testsuite/lib/flags.exp
+++ b/newlib/testsuite/lib/flags.exp
@@ -12,12 +12,20 @@
# directories, rather than in the build and source paths of the
# compiler being used.
+if {![llength [info procs saved_libgloss_link_flags]]} {
+ rename libgloss_link_flags saved_libgloss_link_flags
+}
+
proc libgloss_link_flags { args } {
global target_cpu
# These values come from the local site.exp.
global srcdir objdir
global multibuildtop
+ if {![info exists multibuildtop]} {
+ return [saved_libgloss_link_flags $args]
+ }
+
verbose "In newlib version of libgloss_link_flags...\n"
if [isnative] {