diff options
author | fanquake <fanquake@gmail.com> | 2023-12-06 12:48:09 +0000 |
---|---|---|
committer | fanquake <fanquake@gmail.com> | 2023-12-12 13:58:38 +0000 |
commit | bde8d63b17637c507a543cebe90f2998b5847373 (patch) | |
tree | 6374623afa67cce122ef33afd8866ad85244caf8 /depends | |
parent | 506634d79d6427925cd458f67799fe59e0ab14dd (diff) | |
download | bitcoin-bde8d63b17637c507a543cebe90f2998b5847373.tar.xz |
depends: build libmultiprocess with position independant code
This matches what we do with all other dependencies, see `--with-pic`,
and fixes build failures, like #26943.
Diffstat (limited to 'depends')
-rw-r--r-- | depends/packages/libmultiprocess.mk | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/depends/packages/libmultiprocess.mk b/depends/packages/libmultiprocess.mk index 98eae1e6d6..d237f52dbb 100644 --- a/depends/packages/libmultiprocess.mk +++ b/depends/packages/libmultiprocess.mk @@ -14,6 +14,7 @@ endif # directory, which might be "lib64" or something else, not "lib", on multiarch systems. define $(package)_set_vars := $(package)_config_opts += -DCMAKE_INSTALL_LIBDIR=lib/ +$(package)_config_opts += -DCMAKE_POSITION_INDEPENDENT_CODE=ON ifneq ($(host),$(build)) $(package)_config_opts := -DCAPNP_EXECUTABLE="$$(native_capnp_prefixbin)/capnp" $(package)_config_opts += -DCAPNPC_CXX_EXECUTABLE="$$(native_capnp_prefixbin)/capnpc-c++" |