This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH ARM][newlib] Changed nano.specs to look for system headers in newlib-nano dir


Upon newlib-nano installation, the newlib.h configured for newlib-nano should be copied into a directory called newlib-nao, newly created in the installations include directory. The specs file for newlib-nano, nano.specs will now ensure that the preprocessor looks there first and thus uses the correct newlib.h for newlib-nano.


libgloss/ChangeLog
2015-06-30  Andre Vieira  <andre.simoesdiasvieira@arm.com\>

  \* arm/elf-nano.specs: Added option to search for system headers
  in newlib-nano directory.


From eb341a257c56a43fc97ef66a0ca1b7aed2292120 Mon Sep 17 00:00:00 2001
From: Andre Simoes Dias Vieira <andsim01@arm.com>
Date: Mon, 29 Jun 2015 13:38:59 +0100
Subject: [PATCH] Change to nano.specs to add nano's include dir

---
 libgloss/arm/elf-nano.specs | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/libgloss/arm/elf-nano.specs b/libgloss/arm/elf-nano.specs
index 60dc407..575f47d 100644
--- a/libgloss/arm/elf-nano.specs
+++ b/libgloss/arm/elf-nano.specs
@@ -1,5 +1,9 @@
 %rename link                nano_link
 %rename link_gcc_c_sequence                nano_link_gcc_c_sequence
+%rename cpp		nano_cpp
+
+*cpp:
+-isystem =/include/newlib-nano %(nano_cpp)
 
 *nano_libc:
 -lc_nano
-- 
1.9.1


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]