diff options
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/linux.cmake | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmake/linux.cmake b/cmake/linux.cmake index 8145d2d8..0951f7cc 100644 --- a/cmake/linux.cmake +++ b/cmake/linux.cmake @@ -1,7 +1,7 @@ set(CMAKE_BUILD_TYPE_INIT RELEASE) -set(CMAKE_CXX_FLAGS "-std=c++11" CACHE STRING "" FORCE) -set(CMAKE_C_FLAGS "" CACHE STRING "" FORCE) +set(CMAKE_CXX_FLAGS "-std=c++11 -fPIC" CACHE STRING "" FORCE) +set(CMAKE_C_FLAGS "-fPIC" CACHE STRING "" FORCE) set(CMAKE_AR "gcc-ar" CACHE STRING "" FORCE) set(CMAKE_NM "gcc-nm" CACHE STRING "" FORCE) |