From c656ab15a625f90e458fb1fc581dbfb6e9a0d787 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hauke=20Kr=C3=BCger?= Date: Thu, 21 Mar 2024 18:38:12 +0100 Subject: [PATCH] Added a few comments to recent linkage modifications --- cmake/hostlink.cmake | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cmake/hostlink.cmake b/cmake/hostlink.cmake index 5cd6ea52..a3fade18 100644 --- a/cmake/hostlink.cmake +++ b/cmake/hostlink.cmake @@ -30,6 +30,11 @@ ) # We need to add this library with special magic to override the weak symbols in GCC + # In linux, the WHOLE_ARCHIVE/NO_WHOLE_ARCHIVE options resolve to --whole-archive + # and --no-whole-archive. That means that the symbols from the jvx-link-frontend_static library may override + # the weak symbols. Alternatively, the library could be defined as an OBJECT LIBRARY by setting the flag + # set(CREATE_OBJECT_LIBRARY TRUE) + # Haven't tested, I assume that this option will not allow to link with the SDK since the library is just missing. if(JVX_LINK_WITH_CONSOLE_HOST_FRONTEND_BACKEND_LIB) set(LOCAL_LIBS ${LOCAL_LIBS} ${WHOLE_ARCHIVE} jvx-link-frontend_static ${NO_WHOLE_ARCHIVE}) endif()