diff --git a/external/yara/CMakeLists.txt b/external/yara/CMakeLists.txt index a39b3cb03..5457991e1 100644 --- a/external/yara/CMakeLists.txt +++ b/external/yara/CMakeLists.txt @@ -107,6 +107,7 @@ add_compile_definitions("DEX_MODULE") set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-shift-count-overflow") add_library(libyara STATIC ${LIBYARA_SOURCE} ${LIBYARA_INCLUDES} ${LIBYARA_MODULES}) +set_property(TARGET libyara PROPERTY POSITION_INDEPENDENT_CODE ON) target_include_directories( libyara @@ -123,4 +124,4 @@ endif () include(GNUInstallDirs) configure_file(${LIBYARA_SOURCE_PATH}/yara.pc.in ${LIBYARA_SOURCE_PATH}/yara.pc @ONLY) -set(CMAKE_STATIC_LIBRARY_PREFIX "") \ No newline at end of file +set(CMAKE_STATIC_LIBRARY_PREFIX "")