From 69291b081a49b4d5d0ca5211ce0be9641f7ec700 Mon Sep 17 00:00:00 2001 From: Petr Hodina Date: Fri, 23 Jan 2026 16:41:17 +0100 Subject: [PATCH 1/2] Makefile: use machine type for uname We are interested in machine architecture and want to get: ``` $ uname -m aarch64 $ uname -m x86_64 ``` Signed-off-by: Petr Hodina --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index fa6c3a6..2729bde 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ .DEFAULT_GOAL := build .PHONY:build microhop-release-static microhop-debug-static microgen-release microgen-debug _reset_placeholder -ARCH := $(shell uname -p) +ARCH := $(shell uname -m) ARC_VERSION := $(shell cat src/microhop.rs | grep 'static VERSION' | sed -e 's/.*=//g' -e 's/[" ;]//g') ARC_NAME := microhop-${ARC_VERSION} From 34476f1cafcd6cce1eb1d127b62af428244d46de Mon Sep 17 00:00:00 2001 From: Petr Hodina Date: Tue, 10 Feb 2026 12:50:38 +0100 Subject: [PATCH 2/2] Makefile: Switch to musl instead of gnu glib Signed-off-by: Petr Hodina --- Makefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 2729bde..83ed4ef 100644 --- a/Makefile +++ b/Makefile @@ -6,10 +6,10 @@ ARC_VERSION := $(shell cat src/microhop.rs | grep 'static VERSION' | sed -e 's/. ARC_NAME := microhop-${ARC_VERSION} microhop-release-static: - RUSTFLAGS='-C target-feature=+crt-static' cargo build -p microhop --target $(ARCH)-unknown-linux-gnu --release + RUSTFLAGS='-C target-feature=+crt-static' cargo build -p microhop --target $(ARCH)-unknown-linux-musl --release microhop-debug-static: - RUSTFLAGS='-C target-feature=+crt-static' cargo build -p microhop --target $(ARCH)-unknown-linux-gnu + RUSTFLAGS='-C target-feature=+crt-static' cargo build -p microhop --target $(ARCH)-unknown-linux-musl microgen-release: cargo build -p microgen --release @@ -25,7 +25,7 @@ build-debug: @printf "Building Microhop (debug)\n" @$(MAKE) microhop-debug-static - cp target/$(ARCH)-unknown-linux-gnu/debug/microhop microgen/src + cp target/$(ARCH)-unknown-linux-musl/debug/microhop microgen/src @printf "Building Microgen\n" @$(MAKE) microgen-debug @@ -37,7 +37,7 @@ build-release: @printf "Building Microhop (release)\n" @$(MAKE) microhop-release-static - cp target/$(ARCH)-unknown-linux-gnu/release/microhop microgen/src + cp target/$(ARCH)-unknown-linux-musl/release/microhop microgen/src @printf "Building Microgen\n" @$(MAKE) microgen-release