summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-05-08 16:54:09 +0200
committerGitHub <noreply@github.com>2020-05-08 16:54:09 +0200
commitae9892e23e378a6bd96884d09b886757c425ac58 (patch)
tree0d5cf953d966ff77f31e4f318529d99a48837680 /Makefile
parentd3826d6eb3ec38116ee40b5081dcddab39bd3493 (diff)
parentb27aa5f81b6197817fcbc659019a65f50c8892b2 (diff)
downloadpodman-ae9892e23e378a6bd96884d09b886757c425ac58.tar.gz
podman-ae9892e23e378a6bd96884d09b886757c425ac58.tar.bz2
podman-ae9892e23e378a6bd96884d09b886757c425ac58.zip
Merge pull request #6103 from rhatdan/makefile.1
Add podman-remote-static target
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index bce0f33a1..2bbae0a72 100644
--- a/Makefile
+++ b/Makefile
@@ -189,7 +189,11 @@ podman: bin/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 "!ABISupport $(BUILDTAGS) remoteclient" -o $@ $(PROJECT)/cmd/podman
+ $(GO_BUILD) $(BUILDFLAGS) -gcflags '$(GCFLAGS)' -asmflags '$(ASMFLAGS)' -ldflags '$(LDFLAGS_PODMAN)' -tags "!ABISupport remoteclient" -o $@ $(PROJECT)/cmd/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 containers_image_openpgp remoteclient" -o bin/podman-remote-static $(PROJECT)/cmd/podman
.PHONY: podman-remote
podman-remote: bin/podman-remote