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 <noreply@anthropic.com>
This commit is contained in:
parent
6e7234bf5d
commit
812086f711
1 changed files with 9 additions and 0 deletions
9
Makefile.sushi30
Normal file
9
Makefile.sushi30
Normal file
|
|
@ -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"
|
||||||
Loading…
Add table
Reference in a new issue