aboutsummaryrefslogtreecommitdiff
path: root/src/drivers/boards/aerocore/module.mk
diff options
context:
space:
mode:
Diffstat (limited to 'src/drivers/boards/aerocore/module.mk')
-rw-r--r--src/drivers/boards/aerocore/module.mk6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/drivers/boards/aerocore/module.mk b/src/drivers/boards/aerocore/module.mk
index 0a2d91009..05e3d878d 100644
--- a/src/drivers/boards/aerocore/module.mk
+++ b/src/drivers/boards/aerocore/module.mk
@@ -7,4 +7,10 @@ SRCS = aerocore_init.c \
aerocore_spi.c \
aerocore_led.c
+ENABLE_CXXINITIALIZE=$(call check_nuttx_config ,"CONFIG_HAVE_CXX 1", $(NUTTX_CONFIG_H))
+ENABLE_CXXINITIALIZE+=$(call check_nuttx_config ,"CONFIG_HAVE_CXXINITIALIZE 1", $(NUTTX_CONFIG_H))
+ifeq ("$(ENABLE_CXXINITIALIZE)",$(nuttx_config_2true))
+SRCS += ../../../modules/systemlib/up_cxxinitialize.c
+endif
+
MAXOPTIMIZATION = -Os