diff options
-rw-r--r-- | CMakeLists.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 6306852..d9bc30c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -32,6 +32,10 @@ if (CMAKE_COMPILER_IS_GNUCC) endif() endif() +# HACK: cmake always adds "-rdynamic", this removes it +SET(CMAKE_SHARED_LIBRARY_LINK_C_FLAGS "") +SET(CMAKE_SHARED_LIBRARY_LINK_CXX_FLAGS "") + set(CMAKE_POSITION_INDEPENDENT_CODE TRUE) # static link libc |