Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
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] {