From 7c042156d9cfc279439f2e11863893ab040de238 Mon Sep 17 00:00:00 2001 From: MITSUNARI Shigeo Date: Thu, 18 Feb 2021 10:46:32 +0900 Subject: [PATCH] add -fPIC to cmake --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index df7e4f1..04c8589 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -154,7 +154,7 @@ if(MSVC) else() # Set compiler flags for warnings set(MCL_COMPILE_OPTIONS -Wall -Wextra -Wformat=2 -Wcast-qual -Wcast-align - -Wwrite-strings -Wfloat-equal -Wpointer-arith -march=native) + -Wwrite-strings -Wfloat-equal -Wpointer-arith -DNDEBUG -O3 -fPIC) target_compile_options(mcl PRIVATE ${MCL_COMPILE_OPTIONS}) target_compile_options(mcl_st PRIVATE ${MCL_COMPILE_OPTIONS})