Skip to content

Commit

Permalink
Fix runtime core flags (#1083)
Browse files Browse the repository at this point in the history
Use -fPIC only with light runtime
  • Loading branch information
mkornaukhov03 authored Aug 29, 2024
1 parent 5747f48 commit 3e2ef14
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion runtime-core/runtime-core.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,7 @@ endif()

prepend(KPHP_CORE_SRC ${RUNTIME_CORE_DIR}/ "${KPHP_CORE_SRC}")
vk_add_library(runtime-core OBJECT ${KPHP_CORE_SRC})
target_compile_options(runtime-core PUBLIC -fPIC)

if (COMPILE_RUNTIME_LIGHT)
target_compile_options(runtime-core PUBLIC -fPIC)
endif()

0 comments on commit 3e2ef14

Please sign in to comment.