You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by "Barto22 (via GitHub)" <gi...@apache.org> on 2026/01/12 11:44:38 UTC

Re: [PR] libs: Add support for latest LLVM LIBCXX and LIBCXXABI version 21.1.8 [nuttx]

Barto22 commented on code in PR #17826:
URL: https://github.com/apache/nuttx/pull/17826#discussion_r2681934478


##########
arch/arm/src/cmake/gcc.cmake:
##########
@@ -274,6 +274,11 @@ if(NOT CONFIG_CXX_RTTI)
   add_compile_options($<$<COMPILE_LANGUAGE:CXX>:-fno-rtti>)
 endif()
 
+# Add -mlong-calls for C++ when using libcxx to fix relocation issues
+if(CONFIG_LIBCXX)
+  add_compile_options($<$<COMPILE_LANGUAGE:CXX>:-mlong-calls>)

Review Comment:
   For now I resolved the problem and remove this flags, I will do further tests.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org