summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeff Johnston <jjohnstn@redhat.com>2011-09-08 16:18:23 +0000
committerJeff Johnston <jjohnstn@redhat.com>2011-09-08 16:18:23 +0000
commitc9925bf4973dfa744fa86e5e1ff6b591e4d3f655 (patch)
tree73aa180e773541c4927fd895abc923c95c2639c4
parent35e8bb2b7eb7cdef63a70a9edea6762ba9560d63 (diff)
downloadcygnal-c9925bf4973dfa744fa86e5e1ff6b591e4d3f655.tar.gz
cygnal-c9925bf4973dfa744fa86e5e1ff6b591e4d3f655.tar.bz2
cygnal-c9925bf4973dfa744fa86e5e1ff6b591e4d3f655.zip
2011-09-08 Jeff Johnston <jjohnstn@redhat.com>
* testsuite/lib/flags.exp: Add logic to add the srcdir include directory to compile flags.
-rw-r--r--newlib/ChangeLog5
-rw-r--r--newlib/testsuite/lib/flags.exp8
2 files changed, 11 insertions, 2 deletions
diff --git a/newlib/ChangeLog b/newlib/ChangeLog
index cdda0cf04..4e4c1afa0 100644
--- a/newlib/ChangeLog
+++ b/newlib/ChangeLog
@@ -1,3 +1,8 @@
+2011-09-08 Jeff Johnston <jjohnstn@redhat.com>
+
+ * testsuite/lib/flags.exp: Add logic to add the
+ srcdir include directory to compile flags.
+
2011-08-26 Steven Abner <pheonix@zoomtown.com>
* libc/time/mktm_r.c (_mktm_r): Fix previous fix.
diff --git a/newlib/testsuite/lib/flags.exp b/newlib/testsuite/lib/flags.exp
index cc9a3561e..577efa867 100644
--- a/newlib/testsuite/lib/flags.exp
+++ b/newlib/testsuite/lib/flags.exp
@@ -1,4 +1,4 @@
-# Copyright (C) 2002 by Red Hat, Incorporated. All rights reserved.
+# Copyright (C) 2002, 2011 by Red Hat, Incorporated. All rights reserved.
#
# Permission to use, copy, modify, and distribute this software
# is freely granted, provided that this notice is preserved.
@@ -82,5 +82,9 @@ proc newlib_include_flags { args } {
return ""
}
- return " -I$objdir/targ-include"
+ set newlib_dir [lookfor_file ${srcdir} newlib/libc/include/assert.h]
+ if { ${newlib_dir} != "" } {
+ set newlib_dir [file dirname ${newlib_dir}]
+ }
+ return " -I$objdir/targ-include -I$objdir -I${newlib_dir}"
}