mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-29 12:07:46 +00:00
Build rust-crypto with cargo
This commit is contained in:
parent
e432c267b6
commit
2dcbd84456
1 changed files with 2 additions and 2 deletions
4
Makefile
4
Makefile
|
@ -221,9 +221,9 @@ $(BUILDDIR)/uutils: $(SRCDIR)/uutils/uutils.rs $(BUILDDIR)/mkuutils $(RLIB_PATHS
|
||||||
$(if $(ENABLE_STRIP),strip $@)
|
$(if $(ENABLE_STRIP),strip $@)
|
||||||
|
|
||||||
# Dependencies
|
# Dependencies
|
||||||
-include $(BUILDDIR)/rust-crypto.d
|
|
||||||
$(BUILDDIR)/.rust-crypto: $(BUILDDIR)/.rust-time | $(BUILDDIR)
|
$(BUILDDIR)/.rust-crypto: $(BUILDDIR)/.rust-time | $(BUILDDIR)
|
||||||
$(RUSTC) $(RUSTCFLAGS) --extern time=$(BUILDDIR)/libtime.rlib --crate-type rlib --crate-name crypto --dep-info $(BUILDDIR)/rust-crypto.d $(BASEDIR)/deps/rust-crypto/src/rust-crypto/lib.rs --out-dir $(BUILDDIR)/
|
cd $(BASEDIR)/deps/rust-crypto && cargo build --release
|
||||||
|
cp -r $(BASEDIR)/deps/rust-crypto/target/release/libcrypto*.rlib $(BUILDDIR)/libcrypto.rlib
|
||||||
@touch $@
|
@touch $@
|
||||||
|
|
||||||
$(BUILDDIR)/.rust-time:
|
$(BUILDDIR)/.rust-time:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue