From 6e56833ce3194ac8cf5d1253da8cbb39d9fb77a0 Mon Sep 17 00:00:00 2001 From: Austin Schneider Date: Fri, 11 Oct 2024 21:18:08 -0600 Subject: [PATCH] FPIC for rk_static --- vendor/rk/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/vendor/rk/CMakeLists.txt b/vendor/rk/CMakeLists.txt index cc15f75c..f28dd935 100644 --- a/vendor/rk/CMakeLists.txt +++ b/vendor/rk/CMakeLists.txt @@ -30,6 +30,7 @@ LIST(APPEND rk_HEADERS ) add_library(rk_static STATIC ${rk_SOURCES}) +set_property(TARGET rk_static PROPERTY POSITION_INDEPENDENT_CODE ON) add_library(rk_shared SHARED ${rk_SOURCES}) set_target_properties(rk_static PROPERTIES EXPORT_NAME rk) set_target_properties(rk_shared PROPERTIES EXPORT_NAME rk)