Skip to content

Commit

Permalink
Fix Android/ARM build support
Browse files Browse the repository at this point in the history
  • Loading branch information
noob6t5 committed Nov 23, 2024
1 parent 436c386 commit 7570cff
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,14 @@ clean:

go-build: clean
go-build:
$(GOBUILD) $(GOFLAGS) -ldflags '${LDFLAGS}' $(GOBUILD_ADDITIONAL_ARGS) \
-o '${GOBUILD_OUTPUT}' $(GOBUILD_PACKAGES)
ifneq ($(shell go env GOARCH), arm)
GOARCH=arm
endif
ifneq ($(shell go env GOOS), android)
GOOS=android
endif
CGO_ENABLED=1 $(GOBUILD) $(GOFLAGS) -ldflags '${LDFLAGS}' $(GOBUILD_ADDITIONAL_ARGS) \
-o '${GOBUILD_OUTPUT}' $(GOBUILD_PACKAGES)

build: GOBUILD_OUTPUT = ./bin/nuclei
build: GOBUILD_PACKAGES = cmd/nuclei/main.go
Expand Down

0 comments on commit 7570cff

Please sign in to comment.