More uClibc++ build fixes
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5299 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
parent
e3b38f2591
commit
0b3d2b3e4b
|
@ -215,6 +215,19 @@ cxxtest
|
|||
b. Execute 'make menuconfig' in nuttx/ in order to start the
|
||||
reconfiguration process.
|
||||
|
||||
3. At presenet (2012/11/02), this example builds only with exceptions
|
||||
disabled (CONFIG_UCLIBCXX_EXCEPTIONS=n). And even then, it will
|
||||
not run.
|
||||
|
||||
The reason that the example will will not run on the simulator has
|
||||
to do with when static constructors are enabled: In the simulator
|
||||
it will attempt to execute the static constructros before main()
|
||||
starts. BUT... NuttX is not initialized and this results in a crash.
|
||||
|
||||
To really use this example, I will have to think of some way to
|
||||
postpone running C++ static initializers until NuttX has been
|
||||
initialied.
|
||||
|
||||
mount
|
||||
|
||||
Description
|
||||
|
|
|
@ -45,7 +45,11 @@ else
|
|||
endif
|
||||
|
||||
ARCHCPUFLAGS = -fno-builtin
|
||||
ARCHCPUFLAGSXX = -fno-builtin
|
||||
ifeq ($(CONFIG_UCLIBCXX_EXCEPTION),y)
|
||||
ARCHCPUFLAGSXX = -fno-builtin
|
||||
else
|
||||
ARCHCPUFLAGSXX = -fno-builtin -fno-exceptions
|
||||
endif
|
||||
ARCHPICFLAGS = -fpic
|
||||
ARCHWARNINGS = -Wall -Wstrict-prototypes -Wshadow
|
||||
ARCHWARNINGSXX = -Wall -Wshadow
|
||||
|
|
Loading…
Reference in New Issue