summaryrefslogtreecommitdiffhomepage
path: root/cmake/linux.cmake
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2016-06-28 05:22:55 +0200
committerStanislaw Halik <sthalik@misaki.pl>2016-06-28 05:22:55 +0200
commit1fddde254bb0c9532304ccd7db91aa1b6df5c3bf (patch)
tree3ccfd6c8d361c716f315f3253c8b9bad34bbd5d0 /cmake/linux.cmake
parent5e66cd0e2f0103041a37bd8844cb820ca47b41dc (diff)
cmake/linux: enable -fPIC
Diffstat (limited to 'cmake/linux.cmake')
-rw-r--r--cmake/linux.cmake2
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")