Skip to content

Commit bde8d63

Browse files
committed
depends: build libmultiprocess with position independant code
This matches what we do with all other dependencies, see `--with-pic`, and fixes build failures, like bitcoin#26943.
1 parent 506634d commit bde8d63

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

depends/packages/libmultiprocess.mk

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ endif
1414
# directory, which might be "lib64" or something else, not "lib", on multiarch systems.
1515
define $(package)_set_vars :=
1616
$(package)_config_opts += -DCMAKE_INSTALL_LIBDIR=lib/
17+
$(package)_config_opts += -DCMAKE_POSITION_INDEPENDENT_CODE=ON
1718
ifneq ($(host),$(build))
1819
$(package)_config_opts := -DCAPNP_EXECUTABLE="$$(native_capnp_prefixbin)/capnp"
1920
$(package)_config_opts += -DCAPNPC_CXX_EXECUTABLE="$$(native_capnp_prefixbin)/capnpc-c++"

0 commit comments

Comments
 (0)