Skip to content

Commit

Permalink
Add linker flags to allow undefined symbols in shared library
Browse files Browse the repository at this point in the history
  • Loading branch information
apolyakov committed Nov 5, 2024
1 parent 0d6eeaf commit 5ff4915
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions runtime-light/runtime-light.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,12 @@ target_compile_options(runtime-light PUBLIC -stdlib=libc++ -iquote
${GENERATED_DIR} -fPIC -O3)
target_link_options(runtime-light PUBLIC -stdlib=libc++ -static-libstdc++)

if(APPLE)
target_link_options(runtime-light PUBLIC -undefined dynamic_lookup)
else()
target_link_options(runtime-light PUBLIC --allow-shlib-undefined)
endif()

vk_add_library(kphp-light-runtime STATIC)
target_link_libraries(
kphp-light-runtime PUBLIC vk::light-common vk::light-unicode
Expand Down

0 comments on commit 5ff4915

Please sign in to comment.