aboutsummaryrefslogtreecommitdiff
path: root/src/drivers/boards/px4fmu-v1/module.mk
diff options
context:
space:
mode:
Diffstat (limited to 'src/drivers/boards/px4fmu-v1/module.mk')
-rw-r--r--src/drivers/boards/px4fmu-v1/module.mk6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/drivers/boards/px4fmu-v1/module.mk b/src/drivers/boards/px4fmu-v1/module.mk
index 5e1a27d5a..ff717fe92 100644
--- a/src/drivers/boards/px4fmu-v1/module.mk
+++ b/src/drivers/boards/px4fmu-v1/module.mk
@@ -9,4 +9,10 @@ SRCS = px4fmu_can.c \
px4fmu_usb.c \
px4fmu_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