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


##########
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:
   Yes, there was problem during linking with relocations. 



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to