Skip to content

Commit

Permalink
add fpic to plugin-support on linux
Browse files Browse the repository at this point in the history
  • Loading branch information
royshil committed Nov 13, 2023
1 parent 810e855 commit dcfadde
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmake/common/helpers_common.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -134,4 +134,8 @@ if(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/src/plugin-support.c.in")
PRIVATE plugin-support.c
PUBLIC src/plugin-support.h)
target_include_directories(plugin-support PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/src")
if (UNIX AND NOT APPLE)
# add fPIC
set_property(TARGET plugin-support PROPERTY POSITION_INDEPENDENT_CODE ON)
endif()
endif()

0 comments on commit dcfadde

Please sign in to comment.