From 89f51ef03f9e62a7c9d47bd677179f8ff0027997 Mon Sep 17 00:00:00 2001 From: Jacob Killelea Date: Wed, 28 Jun 2023 19:43:43 -0700 Subject: [PATCH] RTEMS.cmake: add quotes around ${RTEMS_BSP_C_FLAGS}. Without the quotes, only the first argument is actually passed to the compiler by rtems-syms. --- cmake/Modules/Platform/RTEMS.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/Modules/Platform/RTEMS.cmake b/cmake/Modules/Platform/RTEMS.cmake index 577adff3..d13a27ff 100644 --- a/cmake/Modules/Platform/RTEMS.cmake +++ b/cmake/Modules/Platform/RTEMS.cmake @@ -67,7 +67,7 @@ else() # Then run "rtems-syms" and re-link the output into a final executable set(CMAKE_C_LINK_EXECUTABLE " ${RTEMS_SYS_SPECS_FLAGS} ${RTEMS_BSP_C_FLAGS} ${RTEMS_SYS_LINKFLAGS} -o -prelink " - "${RTEMS_TOOLS_PREFIX}/bin/rtems-syms -v -e -c ${RTEMS_BSP_C_FLAGS} -C -o -dl-sym.o -prelink" + "${RTEMS_TOOLS_PREFIX}/bin/rtems-syms -v -e -c \"${RTEMS_BSP_C_FLAGS}\" -C -o -dl-sym.o -prelink" " ${RTEMS_SYS_SPECS_FLAGS} ${RTEMS_BSP_C_FLAGS} ${RTEMS_SYS_LINKFLAGS} -o -dl-sym.o ") endif(RTEMS_DYNAMIC_LOAD)