Skip to content

Commit fc71192

Browse files
committed
build BUGFIX set PIC for compat
1 parent 9c3bda9 commit fc71192

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

CMakeModules/UseCompat.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,5 @@ macro(USE_COMPAT)
2222
configure_file(${PROJECT_SOURCE_DIR}/compat/compat.h.in ${PROJECT_BINARY_DIR}/compat.h @ONLY)
2323
include_directories(${PROJECT_BINARY_DIR})
2424
add_library(compat OBJECT ${PROJECT_SOURCE_DIR}/compat/compat.c)
25+
set_property(TARGET compat PROPERTY POSITION_INDEPENDENT_CODE ON)
2526
endmacro()

0 commit comments

Comments
 (0)