mirror of
https://github.com/apache/nuttx.git
synced 2026-05-30 21:36:28 +08:00
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:
@@ -215,6 +215,19 @@ cxxtest
|
|||||||
b. Execute 'make menuconfig' in nuttx/ in order to start the
|
b. Execute 'make menuconfig' in nuttx/ in order to start the
|
||||||
reconfiguration process.
|
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
|
mount
|
||||||
|
|
||||||
Description
|
Description
|
||||||
|
|||||||
@@ -45,7 +45,11 @@ else
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
ARCHCPUFLAGS = -fno-builtin
|
ARCHCPUFLAGS = -fno-builtin
|
||||||
|
ifeq ($(CONFIG_UCLIBCXX_EXCEPTION),y)
|
||||||
ARCHCPUFLAGSXX = -fno-builtin
|
ARCHCPUFLAGSXX = -fno-builtin
|
||||||
|
else
|
||||||
|
ARCHCPUFLAGSXX = -fno-builtin -fno-exceptions
|
||||||
|
endif
|
||||||
ARCHPICFLAGS = -fpic
|
ARCHPICFLAGS = -fpic
|
||||||
ARCHWARNINGS = -Wall -Wstrict-prototypes -Wshadow
|
ARCHWARNINGS = -Wall -Wstrict-prototypes -Wshadow
|
||||||
ARCHWARNINGSXX = -Wall -Wshadow
|
ARCHWARNINGSXX = -Wall -Wshadow
|
||||||
|
|||||||
Reference in New Issue
Block a user