We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4808a63 + 25f35ac commit 7203178Copy full SHA for 7203178
Makefile
@@ -173,6 +173,15 @@ define go-get
173
$(GO) get -u ${1}
174
endef
175
176
+# Need to use CGO for mDNS resolution, but cross builds need CGO disabled
177
+# See https://github.com/golang/go/issues/12524 for details
178
+DARWIN_GCO := 0
179
+ifeq ($(NATIVE_GOOS),darwin)
180
+ifdef HOMEBREW_PREFIX
181
+ DARWIN_GCO := 1
182
+endif
183
184
+
185
###
186
### Primary entry-point targets
187
@@ -349,7 +358,7 @@ podman-remote-windows: ## Build podman-remote for Windows
349
358
.PHONY: podman-remote-darwin
350
359
podman-remote-darwin: ## Build podman-remote for macOS
351
360
$(MAKE) \
352
- CGO_ENABLED=0 \
361
+ CGO_ENABLED=$(DARWIN_GCO) \
353
362
GOOS=darwin \
354
363
bin/darwin/podman
355
364
0 commit comments