Create net.Makefile.patch

This commit is contained in:
John Dorman 2023-03-23 06:44:36 -07:00 committed by GitHub
parent 57a90974c5
commit 52bd936b5a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -0,0 +1,22 @@
diff --git a/Makefile b/Makefile
index a84312b1..5ec27081 100644
--- a/Makefile
+++ b/Makefile
@@ -54,7 +54,7 @@ build: build_netavark build_proxy_client
.PHONY: build_netavark
build_netavark: bin $(CARGO_TARGET_DIR)
- $(CARGO) build $(release)
+ $(CARGO) build --target aarch64-unknown-linux-gnu $(release)
cp $(CARGO_TARGET_DIR)/$(profile)/netavark bin/netavark$(if $(debug),.debug,)
.PHONY: crate-publish
@@ -75,7 +75,7 @@ clean:
.PHONY: client
client: bin $(CARGO_TARGET_DIR)
- $(CARGO) build --bin netavark-dhcp-proxy-client $(release)
+ $(CARGO) build --target aarch64-unknown-linux-gnu --bin netavark-dhcp-proxy-client $(release)
.PHONY: docs