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.
This commit is contained in:
fanquake 2023-12-06 12:48:09 +00:00
parent 506634d79d
commit bde8d63b17
No known key found for this signature in database
GPG key ID: 2EEB9F5CC09526C1

View file

@ -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++"