Skip to content

Commit

Permalink
Added a few comments to recent linkage modifications
Browse files Browse the repository at this point in the history
  • Loading branch information
hkbinaurics committed Mar 21, 2024
1 parent 37ef327 commit c656ab1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cmake/hostlink.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit c656ab1

Please sign in to comment.