From cb316ec1659542e6ae8024cfe1d3aed76bb224c6 Mon Sep 17 00:00:00 2001 From: Arjav Patel Date: Sat, 23 May 2026 07:44:01 +0000 Subject: [PATCH] apps/system/microros: wire libmicroros.a into LDLIBS and CFLAGS. When CONFIG_SYSTEM_MICROROS=y, add the prebuilt libmicroros.a to LDLIBS and the colcon-installed include/ tree to CFLAGS/CXXFLAGS so that any application in nuttx-apps can include micro-ROS headers and link against the library without extra flags. Signed-off-by: Arjav Patel --- system/microros/Make.defs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/system/microros/Make.defs b/system/microros/Make.defs index 5ec456770..ae95e997d 100644 --- a/system/microros/Make.defs +++ b/system/microros/Make.defs @@ -19,3 +19,12 @@ # under the License. # ############################################################################ + +ifneq ($(CONFIG_SYSTEM_MICROROS),) +CONFIGURED_APPS += $(APPDIR)/system/microros + +CFLAGS += ${INCDIR_PREFIX}$(APPDIR)/system/microros/include +CXXFLAGS += ${INCDIR_PREFIX}$(APPDIR)/system/microros/include + +LDLIBS += $(APPDIR)/system/microros/libmicroros.a +endif