summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel J Walsh <dwalsh@redhat.com>2020-05-06 09:16:10 -0400
committerDaniel J Walsh <dwalsh@redhat.com>2020-05-07 14:40:31 -0400
commit5c1c7b77cec9ea6f94a479c9a72aa5457a2031ac (patch)
treefc7ad525cd5a5ecfb9c6c5a6c083baa728d8be06
parente9b178556d89fa7d483826fbfb59e1075081f800 (diff)
downloadpodman-5c1c7b77cec9ea6f94a479c9a72aa5457a2031ac.tar.gz
podman-5c1c7b77cec9ea6f94a479c9a72aa5457a2031ac.tar.bz2
podman-5c1c7b77cec9ea6f94a479c9a72aa5457a2031ac.zip
Add command to build podman-remote-static
CRC Team wants a static podman-remote that it can install on any linux box. Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
-rw-r--r--Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 9121fae1f..6f342439a 100644
--- a/Makefile
+++ b/Makefile
@@ -187,6 +187,10 @@ endif
.PHONY: podman
podman: bin/podman
+.PHONY: bin/podman-remote-static
+podman-remote-static: bin/podman-remote-static
+ CGO_ENABLED=0 $(GO) build $(BUILDFLAGS) -gcflags '$(GCFLAGS)' -asmflags '$(ASMFLAGS)' -ldflags '$(LDFLAGS_PODMAN_STATIC)' -tags "!ABISupport varlink containers_image_openpgp remoteclient" -o bin/podman-remote-static $(PROJECT)/cmd/podman
+
.PHONY: bin/podman-remote
bin/podman-remote: .gopathok $(SOURCES) go.mod go.sum $(PODMAN_VARLINK_DEPENDENCIES) ## Build with podman on remote environment
$(GO_BUILD) $(BUILDFLAGS) -gcflags '$(GCFLAGS)' -asmflags '$(ASMFLAGS)' -ldflags '$(LDFLAGS_PODMAN)' -tags "$(BUILDTAGS) remoteclient" -o $@ $(PROJECT)/cmd/podman