Put uClibc++ header files in a different directory from NuttX header files

git-svn-id: http://svn.code.sf.net/p/nuttx/code/trunk@5287 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
patacongo
2012-11-01 12:19:20 +00:00
parent 683e54b85f
commit e60d4488b3
53 changed files with 25 additions and 3 deletions
+16 -1
View File
@@ -28,7 +28,22 @@ using this command executed from the misc/uClibc++ directory:
If you run the install.sh like this, then it will (1) make sure you
understand that you have tainted the NuttX BSD license with LGPLv3, and (2)
copy the uClibc++ sources files into nuttx/libxx/uClibc++, include/, and
include/cxx.
include/uClibc++.
Make.defs File Changes
^^^^^^^^^^^^^^^^^^^^^^
The new files that appear in nuttx/include/uClibc++ must be include-able
as system header files. So you will need to add 'isystem $(TOPDIR)/include/uClibc++'
to the ARCHINCLUDESXX definition in the NuttX Make.defs file, perhap like:
-ARCHINCLUDESXX = -I. -isystem $(TOPDIR)/include -isystem $(TOPDIR)/include/cxx
+ARCHINCLUDESXX = -I. -isystem $(TOPDIR)/include -isystem $(TOPDIR)/include/cxx -isystem $(TOPDIR)/include/uClibc++
And, of course, you no long need to suppress exceptions or run-time typing:
-ARCHCPUFLAGSXX = -fno-builtin -fno-exceptions -fno-rtti
+ARCHCPUFLAGSXX = -fno-builtin
Building NuttX with uClibc++
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+8
View File
@@ -556,6 +556,14 @@
</p>
</td>
</tr>
<tr>
<td><br></td>
<td>
<p>
<li>Add-on <a href="http://cxx.uclibc.org/">uClibc++</a> C++ Library is available (LGPL).</li>
</p>
</td>
</tr>
<tr>
<td valign="top" width="22"><img height="20" width="20" src="favicon.ico"></td>
+1 -2
View File
@@ -51,7 +51,7 @@ ARCHWARNINGS = -Wall -Wstrict-prototypes -Wshadow
ARCHWARNINGSXX = -Wall -Wshadow
ARCHDEFINES =
ARCHINCLUDES = -I. -isystem $(TOPDIR)/include
ARCHINCLUDESXX = -I. -isystem $(TOPDIR)/include -isystem $(TOPDIR)/include/cxx
ARCHINCLUDESXX = -I. -isystem $(TOPDIR)/include -isystem $(TOPDIR)/include/cxx -isystem $(TOPDIR)/include/uClibc++
ARCHSCRIPT =
ifeq ($(CONFIG_SIM_M32),y)
@@ -101,7 +101,6 @@ ifeq ($(CONFIG_SIM_M32),y)
LDFLAGS += -m32
endif
MKDEP = $(TOPDIR)/tools/mkdeps.sh
HOSTCC = gcc