We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 173674e commit b34912eCopy full SHA for b34912e
1 file changed
Makefile
@@ -42,6 +42,14 @@ GO_BUILD_TAGS_COMMON :=include_gcs include_oss containers_image_openpgp
42
GO_BUILD_FLAGS :=-tags '$(GO_BUILD_TAGS_COMMON) gssapi'
43
GO_BUILD_FLAGS_CROSS :=-tags '$(GO_BUILD_TAGS_COMMON)'
44
45
+# macOS system GSSAPI headers lack RFC 5587 types (gss_const_name_t).
46
+# Use Homebrew's heimdal headers when available.
47
+ifeq ($(shell uname),Darwin)
48
+ifneq (,$(shell which brew 2>/dev/null))
49
+export CGO_CFLAGS := -I$(shell brew --prefix)/opt/heimdal/include
50
+endif
51
52
+
53
OUTPUT_DIR :=_output
54
CROSS_BUILD_BINDIR :=$(OUTPUT_DIR)/bin
55
RPM_VERSION :=$(shell set -o pipefail && echo '$(SOURCE_GIT_TAG)' | sed -E 's/v([0-9]+\.[0-9]+\.[0-9]+)-.*/\1/')
0 commit comments