suppress cgo compiler warnings in build output
This commit is contained in:
@@ -4,11 +4,12 @@ BINARY := barnard
|
|||||||
|
|
||||||
GO ?= go
|
GO ?= go
|
||||||
GOFLAGS ?=
|
GOFLAGS ?=
|
||||||
|
export CGO_CFLAGS += -w -O2
|
||||||
|
|
||||||
.PHONY: build install uninstall clean fmt vet
|
.PHONY: build install uninstall clean fmt vet
|
||||||
|
|
||||||
build:
|
build:
|
||||||
$(GO) build $(GOFLAGS) -o $(BINARY) .
|
@$(GO) build $(GOFLAGS) -o $(BINARY) .
|
||||||
|
|
||||||
install: build
|
install: build
|
||||||
install -d $(DESTDIR)$(BINDIR)
|
install -d $(DESTDIR)$(BINDIR)
|
||||||
|
|||||||
Reference in New Issue
Block a user