From d0649d90757191604515ca9ae41cb545aa70ae9e Mon Sep 17 00:00:00 2001 From: Alexey Chernyshov Date: Tue, 12 Apr 2022 17:05:52 +0300 Subject: [PATCH] fix pr Signed-off-by: Alexey Chernyshov --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 6d4b64a176..4ba3b1bb82 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -57,6 +57,8 @@ include(cmake/dependencies.cmake) include(cmake/functions.cmake) include(cmake/san.cmake) +set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS_INIT} -fPIC") + print("C flags: ${CMAKE_C_FLAGS}") print("CXX flags: ${CMAKE_CXX_FLAGS}") print("Using CMAKE_TOOLCHAIN_FILE=${CMAKE_TOOLCHAIN_FILE}")