Go: Use Homebrew include paths

Fixes nginx/unit#967
This commit is contained in:
Danielle De Leo
2023-12-05 10:42:28 -05:00
parent a922f9a6f0
commit 9a36de84c8

14
go/ldflags-darwin.go Normal file
View File

@@ -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"