From 1429f80cf9eaba279f8a0ba649d44be80d77960a Mon Sep 17 00:00:00 2001 From: Julia Ahopelto Date: Thu, 25 Nov 2021 08:00:17 +0000 Subject: [PATCH] fix build on Fedora 35 (#340) (#347) --- external/yara/CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 "")