From c95736b6324ecc2e10434862c872a25341b3db37 Mon Sep 17 00:00:00 2001 From: Username Date: Tue, 24 Feb 2026 10:00:40 +0100 Subject: [PATCH] suppress cgo compiler warnings in build output --- Makefile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 0c33dc9..7f5c02c 100644 --- a/Makefile +++ b/Makefile @@ -2,13 +2,14 @@ PREFIX ?= /usr/local BINDIR ?= $(PREFIX)/bin BINARY := barnard -GO ?= go -GOFLAGS ?= +GO ?= go +GOFLAGS ?= +export CGO_CFLAGS += -w -O2 .PHONY: build install uninstall clean fmt vet build: - $(GO) build $(GOFLAGS) -o $(BINARY) . + @$(GO) build $(GOFLAGS) -o $(BINARY) . install: build install -d $(DESTDIR)$(BINDIR)