Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/supermerill/SuperSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/xs
diff options
context:
space:
mode:
authorVojtech Bubnik <bubnikv@gmail.com>2017-08-18 23:45:24 +0300
committerVojtech Bubnik <bubnikv@gmail.com>2017-08-18 23:45:24 +0300
commitd0c43c99c34cac2dedcab68447a523410b2affa2 (patch)
tree9fb69dca18bae9a15db06994eb12d9696a6fbe3b /xs
parentba1c0b0137f84e95a937a5920a7d0184e01ff0b6 (diff)
CMake build system: Linux fixes
Diffstat (limited to 'xs')
-rw-r--r--xs/CMakeLists.txt2
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