From 9a36de84c8534cdd8d22b33d90309519e03abf3b Mon Sep 17 00:00:00 2001 From: Danielle De Leo Date: Tue, 5 Dec 2023 10:42:28 -0500 Subject: Go: Use Homebrew include paths Fixes nginx/unit#967 --- go/ldflags-darwin.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 go/ldflags-darwin.go diff --git a/go/ldflags-darwin.go b/go/ldflags-darwin.go new file mode 100644 index 00000000..34cfac1a --- /dev/null +++ b/go/ldflags-darwin.go @@ -0,0 +1,14 @@ +//go:build darwin + +/* + * Copyright (C) Danielle De Leo + * Copyright (C) NGINX, Inc. + */ + +package unit + +/* +#cgo LDFLAGS: -L/opt/homebrew/lib +#cgo CFLAGS: -I/opt/homebrew/include +*/ +import "C" -- cgit