From 38344bc0d33858826acaed47fefc28a60bedd50a Mon Sep 17 00:00:00 2001 From: KitsuneAlex Date: Thu, 3 Feb 2022 00:18:01 +0100 Subject: [PATCH] Compile static library with -fPIC because of relocation --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index ad29a048..3a426ad0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -14,6 +14,7 @@ add_compile_options( -fvisibility=hidden -ffunction-sections -fdata-sections + -fPIC -Wall -std=c++11)