diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2016-06-28 05:22:55 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2016-06-28 05:22:55 +0200 |
commit | 1fddde254bb0c9532304ccd7db91aa1b6df5c3bf (patch) | |
tree | 3ccfd6c8d361c716f315f3253c8b9bad34bbd5d0 /cmake/linux.cmake | |
parent | 5e66cd0e2f0103041a37bd8844cb820ca47b41dc (diff) |
cmake/linux: enable -fPIC
Diffstat (limited to 'cmake/linux.cmake')
-rw-r--r-- | cmake/linux.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/linux.cmake b/cmake/linux.cmake index 8e61b09d..a1083db5 100644 --- a/cmake/linux.cmake +++ b/cmake/linux.cmake @@ -7,7 +7,7 @@ set(CMAKE_AR "gcc-ar" CACHE STRING "" FORCE) set(CMAKE_NM "gcc-nm" CACHE STRING "" FORCE) set(CMAKE_RANLIB "gcc-ranlib" CACHE STRING "" FORCE) -set(CMAKE_C_FLAGS_RELEASE "-ffast-math -O3 -flto -fuse-linker-plugin -fvisibility=hidden" CACHE STRING "" FORCE) +set(CMAKE_C_FLAGS_RELEASE "-ffast-math -O3 -flto -fuse-linker-plugin -fvisibility=hidden -fPIC" CACHE STRING "" FORCE) set(CMAKE_CXX_FLAGS_RELEASE " ${CMAKE_C_FLAGS_RELEASE} " CACHE STRING "" FORCE) set(cmake-link-common "-std=c++11") |