We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e51bc0e commit f3df916Copy full SHA for f3df916
CMakeLists.txt
@@ -13,6 +13,11 @@ option(DEBUGINFOD "Compile with debuginfod support" ON)
13
14
math(EXPR PLATFORM_BITS "${CMAKE_SIZEOF_VOID_P} * 8")
15
set(PSTACK_BIN "pstack" CACHE STRING "Name of the 'pstack' binary")
16
+
17
+# Generate position independent code, even for static libs - that way we can
18
+# link them to shared libs.
19
+set(CMAKE_POSITION_INDEPENDENT_CODE ON)
20
21
set(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}/" CACHE STRING "Rpath to install for binaries or the empty string")
22
set(LIBTYPE "SHARED" CACHE STRING "Build libraries as STATIC or SHARED")
23
set (PYTHON3_SOURCE "" CACHE STRING "Path to the CPython source code")
0 commit comments