forked from containers/podman
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Makefile: build podman-remote-static with cgo disabled
Resolves: containers#13557 [NO NEW TESTS NEEDED] Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
- Loading branch information
Showing
1 changed file
with
4 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -336,7 +336,10 @@ $(SRCBINDIR)/podman$(BINSFX): $(SRCBINDIR) .gopathok $(SOURCES) go.mod go.sum | |
-o $@ ./cmd/podman | ||
|
||
$(SRCBINDIR)/podman-remote-static: $(SRCBINDIR) .gopathok $(SOURCES) go.mod go.sum | ||
$(GOCMD) build \ | ||
CGO_ENABLED=0 \ | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
lsm5
Author
Owner
|
||
GOOS=$(GOOS) \ | ||
GOARCH=$(GOARCH) \ | ||
$(GO) build \ | ||
$(BUILDFLAGS) \ | ||
$(GO_LDFLAGS) '$(LDFLAGS_PODMAN_STATIC)' \ | ||
-tags "${REMOTETAGS}" \ | ||
|
Can we do this for Linux only? Apparently OS X needs CGo to fix some sort of dns resolution issue