Skip to content

Commit beb3096

Browse files
fanquakeryanofsky
andcommitted
depends: always install capnp to /lib
On some systems, capnp would be installed into `lib64`, I assume due to the use of GNUInstallDirs, however all other libs we build in depends, go into lib/. Rather than adding lib64/ to the pkg-config and link flags, I opted for always installing into lib/. Co-authored-by: Ryan Ofsky <[email protected]>
1 parent a7484be commit beb3096

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

depends/packages/capnp.mk

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,15 @@ $(package)_download_file=$(native_$(package)_download_file)
55
$(package)_file_name=$(native_$(package)_file_name)
66
$(package)_sha256_hash=$(native_$(package)_sha256_hash)
77

8+
# Hardcode library install path to "lib" to match the PKG_CONFIG_PATH
9+
# setting in depends/config.site.in, which also hardcodes "lib".
10+
# Without this setting, cmake by default would use the OS library
11+
# directory, which might be "lib64" or something else, not "lib", on multiarch systems.
812
define $(package)_set_vars :=
9-
$(package)_config_opts := -DBUILD_TESTING=OFF
10-
$(package)_config_opts += -DWITH_OPENSSL=OFF
11-
$(package)_config_opts += -DWITH_ZLIB=OFF
13+
$(package)_config_opts := -DBUILD_TESTING=OFF
14+
$(package)_config_opts += -DWITH_OPENSSL=OFF
15+
$(package)_config_opts += -DWITH_ZLIB=OFF
16+
$(package)_config_opts += -DCMAKE_INSTALL_LIBDIR=lib/
1217
endef
1318

1419
define $(package)_config_cmds

0 commit comments

Comments
 (0)