diff options
author | Vojtech Bubnik <bubnikv@gmail.com> | 2017-08-18 23:45:24 +0300 |
---|---|---|
committer | Vojtech Bubnik <bubnikv@gmail.com> | 2017-08-18 23:45:24 +0300 |
commit | d0c43c99c34cac2dedcab68447a523410b2affa2 (patch) | |
tree | 9fb69dca18bae9a15db06994eb12d9696a6fbe3b /xs | |
parent | ba1c0b0137f84e95a937a5920a7d0184e01ff0b6 (diff) |
CMake build system: Linux fixes
Diffstat (limited to 'xs')
-rw-r--r-- | xs/CMakeLists.txt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/xs/CMakeLists.txt b/xs/CMakeLists.txt index 0942ae4e5..32556da93 100644 --- a/xs/CMakeLists.txt +++ b/xs/CMakeLists.txt @@ -394,6 +394,8 @@ target_compile_options(XS PRIVATE ${PerlEmbed_CCFLAGS}) # set(CMAKE_CXX_FLAGS_RELEASE /Od) # set(CMAKE_C_FLAGS_RELEASE /Od) #endif() +# The following line will add -fPIC on Linux to make the XS.so rellocable. +add_definitions(${PerlEmbed_CCCDLFLAGS}) target_link_libraries(XS ${PERL_LIBRARY}) ## REQUIRED packages |