Skip to content

Commit

Permalink
Makefile: fix darwin detection
Browse files Browse the repository at this point in the history
NATIVE_GOOS does not exist in the 3.4 branch, only on main.
Fixes my backport containers#12327. Verified to fix containers#12975 (again) for me.

Signed-off-by: Chris Hofstaedtler <[email protected]>
  • Loading branch information
zeha committed Jan 26, 2022
1 parent 63134a1 commit daeade5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ endef
# Need to use CGO for mDNS resolution, but cross builds need CGO disabled
# See https://github.com/golang/go/issues/12524 for details
DARWIN_GCO := 0
ifeq ($(NATIVE_GOOS),darwin)
ifeq ($(GOOS),darwin)
ifdef HOMEBREW_PREFIX
DARWIN_GCO := 1
endif
Expand Down

0 comments on commit daeade5

Please sign in to comment.