Skip to content

Commit

Permalink
build, depends: Fix libmultiprocess cross-compilation
Browse files Browse the repository at this point in the history
This change prevents building all default targets that include `mpgen`,
which expectedly fails to link when cross-compiling.

Additionally, the following improvements have been added:
- Source and build directories have been separated.
- Rebuilding during installation has been skipped.

Changes to the `native_multiprocess` package have been introduced for
consistency.
  • Loading branch information
hebasto committed Mar 16, 2024
1 parent 3d255df commit 178065f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions depends/packages/libmultiprocess.mk
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@ endif
endef

define $(package)_config_cmds
$($(package)_cmake) .
$($(package)_cmake) -B build
endef

define $(package)_build_cmds
$(MAKE)
$(MAKE) -C build multiprocess
endef

define $(package)_stage_cmds
$(MAKE) DESTDIR=$($(package)_staging_dir) install-lib
cmake --install build --prefix $($(package)_staging_prefix_dir) --component lib
endef
6 changes: 3 additions & 3 deletions depends/packages/native_libmultiprocess.mk
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ $(package)_sha256_hash=030f4d393d2ac9deba98d2e1973e22fc439ffc009d5f8ae3225c90639
$(package)_dependencies=native_capnp

define $(package)_config_cmds
$($(package)_cmake) .
$($(package)_cmake) -B build
endef

define $(package)_build_cmds
$(MAKE)
$(MAKE) -C build mpgen
endef

define $(package)_stage_cmds
$(MAKE) DESTDIR=$($(package)_staging_dir) install-bin
cmake --install build --prefix $($(package)_staging_prefix_dir) --component bin
endef

0 comments on commit 178065f

Please sign in to comment.