diff --git a/CMakeLists.txt b/CMakeLists.txt index 1d9313b7..983d5d05 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -196,7 +196,8 @@ if (WIN32) #set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -march=native") endif () else () - set(${CMAKE_CXX_FLAGS} "${CMAKE_CXX_FLAGS} -O3 -march=native") + set(${CMAKE_CXX_FLAGS} "${CMAKE_CXX_FLAGS} -O3 -fPIC") + #set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -march=native") if (DEFINED ENV{QNX_HOST}) list(APPEND LIBS socket dl) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -ftemplate-depth-32")