Updates will be applied on October 27th between 12pm - 12:45pm EDT (UTC-0400). Gitlab may be slow during the maintenance window.

Commit e09d8360 authored by Ben Boeckel's avatar Ben Boeckel
Browse files

cmake: force -fPIC on static builds

parent c0afbe6e
Pipeline #224982 passed with stage
......@@ -9,6 +9,12 @@ include(GNUInstallDirs)
project(adh-extensions VERSION 1.0)
if (NOT BUILD_SHARED_LIBS)
# Static builds need `-fPIC` due to the force-shared nature of the Python
# module.
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
endif ()
# Set the directory where cmake configuration files are installed. The
# convention for this directory's location is OS-dependent. See
# https://cmake.org/cmake/help/v3.13/command/find_package.html section "Search
......
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