From db8a089a2db881e04d677375ebfde7dff74403b6 Mon Sep 17 00:00:00 2001 From: Jules P?nuchot Date: Fri, 19 May 2023 11:16:49 +0200 Subject: [PATCH] added -fPIC --- cmake/ctbench-compile-opts.cmake | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cmake/ctbench-compile-opts.cmake b/cmake/ctbench-compile-opts.cmake index 7c84fcb..93fc190 100644 --- a/cmake/ctbench-compile-opts.cmake +++ b/cmake/ctbench-compile-opts.cmake @@ -10,8 +10,9 @@ target_compile_options( -Wold-style-cast -Wdouble-promotion -Wshadow - -fno-rtti -march=native - -flto) + -fno-rtti + -flto + -fPIC) target_compile_features(ctbench-compile-opts INTERFACE cxx_std_20)