From 812086f71180f9afaeb1021e3579732cb9763cea Mon Sep 17 00:00:00 2001 From: sushi30 Date: Tue, 24 Mar 2026 22:06:23 +0100 Subject: [PATCH] Add Makefile.sushi30 for single-arch (linux/amd64) whatsapp-native builds Overrides the build-whatsapp-native target to only compile for linux/amd64, avoiding cross-compilation issues (e.g. modernc.org/libc on mipsle). Co-Authored-By: Claude Opus 4.6 --- Makefile.sushi30 | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 Makefile.sushi30 diff --git a/Makefile.sushi30 b/Makefile.sushi30 new file mode 100644 index 000000000..1a74794b6 --- /dev/null +++ b/Makefile.sushi30 @@ -0,0 +1,9 @@ +include Makefile + +## Override build-whatsapp-native to build only for linux/amd64 +build-whatsapp-native: generate + @echo "Building for linux/amd64 only..." + @mkdir -p $(BUILD_DIR) + GOOS=linux GOARCH=amd64 $(GO) build -tags $(GO_BUILD_TAGS),whatsapp_native -ldflags "$(LDFLAGS)" -o $(BUILD_DIR)/$(BINARY_NAME)-linux-amd64 ./$(CMD_DIR) + @ln -sf $(BINARY_NAME)-linux-amd64 $(BUILD_DIR)/$(BINARY_NAME) + @echo "Build complete"