Commit 4e10fb6f authored by Florian Kaltenberger's avatar Florian Kaltenberger

adding -fPIC to compile options in LMSSDR libraries

parent 186553b6
...@@ -2,7 +2,7 @@ set(si5351_src_files ...@@ -2,7 +2,7 @@ set(si5351_src_files
Si5351C.cpp Si5351C.cpp
) )
set(CMAKE_CXX_FLAGS set(CMAKE_CXX_FLAGS
"${CMAKE_CXX_FLAGS} ${C_FLAGS_PROCESSOR} -std=c++11 " "${CMAKE_CXX_FLAGS} ${C_FLAGS_PROCESSOR} -std=c++11 -fPIC"
) )
......
...@@ -9,7 +9,7 @@ if(${CMAKE_MAJOR_VERSION} GREATER 2) ...@@ -9,7 +9,7 @@ if(${CMAKE_MAJOR_VERSION} GREATER 2)
endif() endif()
ADD_DEFINITIONS(-D_CRT_SECURE_NO_WARNINGS) ADD_DEFINITIONS(-D_CRT_SECURE_NO_WARNINGS)
if(CMAKE_COMPILER_IS_GNUCXX) if(CMAKE_COMPILER_IS_GNUCXX)
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++0x") SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++0x -fPIC")
endif() endif()
# set up include-directories # set up include-directories
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment