diff options
author | Gabriel Mazetto <gabriel@gitlab.com> | 2023-04-07 04:20:24 +0200 |
---|---|---|
committer | Gabriel Mazetto <gabriel@gitlab.com> | 2023-04-07 04:20:24 +0200 |
commit | 80dce68581308fe72c0c02a8ff08e3d7131b5aa3 (patch) | |
tree | d7a10dd403623f2c9aade49302537065e2f53ae2 | |
parent | f76503aeb40e6e4702d9697a29ff38fad4a0352f (diff) | |
download | gitlab-shell-80dce68581308fe72c0c02a8ff08e3d7131b5aa3.tar.gz |
Fix CGO_CFLAGS to use output from `brew --prefix`
-rw-r--r-- | Makefile | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -16,8 +16,10 @@ ifeq (${FIPS_MODE}, 1) endif ifeq (${OS}, Darwin) # Mac OS + BREW_PREFIX := $(shell brew --prefix 2>/dev/null || echo "/opt/homebrew") + # To be able to compile gssapi library - export CGO_CFLAGS="-I/opt/homebrew/opt/heimdal/include" + export CGO_CFLAGS="-I$(BREW_PREFIX)/opt/heimdal/include" endif GOBUILD_FLAGS := -ldflags "-X main.Version=$(VERSION_STRING) -X main.BuildTime=$(BUILD_TIME)" -tags "$(BUILD_TAGS)" -mod=mod |