From 1fddde254bb0c9532304ccd7db91aa1b6df5c3bf Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Tue, 28 Jun 2016 05:22:55 +0200 Subject: cmake/linux: enable -fPIC --- cmake/linux.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cmake') 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") -- cgit v1.2.3