summaryrefslogtreecommitdiffhomepage
path: root/cmake
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2016-05-17 17:30:12 +0200
committerStanislaw Halik <sthalik@misaki.pl>2016-05-17 17:30:12 +0200
commit40d72e7ef728bdb3343c78499595a400d0b18680 (patch)
tree9233384b9fdbb019197ef9564ece3c4724d67a68 /cmake
parent9d2dd118a497f6744c34331333bc3c4c61123eed (diff)
cmake: -fPIC for Linux toolchain file
Diffstat (limited to 'cmake')
-rw-r--r--cmake/linux.cmake4
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)