summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2018-10-31 06:48:12 -0700
committerGitHub <noreply@github.com>2018-10-31 06:48:12 -0700
commit9c1985fc4ee0a30a5a852dfbeae742e64978ed25 (patch)
tree4e8c06a177369b88206e24f27d964f10b4bbc531 /Makefile
parentcf4288e3cc1cd95e512cae063066ca26917e378e (diff)
parentb2fef1a8badb875339d6329c095842baee4b3a17 (diff)
downloadpodman-9c1985fc4ee0a30a5a852dfbeae742e64978ed25.tar.gz
podman-9c1985fc4ee0a30a5a852dfbeae742e64978ed25.tar.bz2
podman-9c1985fc4ee0a30a5a852dfbeae742e64978ed25.zip
Merge pull request #1731 from afbjorklund/version
Fix setting of version information
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index b3e2fcc26..d8a870fa2 100644
--- a/Makefile
+++ b/Makefile
@@ -36,7 +36,8 @@ PACKAGES ?= $(shell $(GO) list -tags "${BUILDTAGS}" ./... | grep -v github.com/c
COMMIT_NO ?= $(shell git rev-parse HEAD 2> /dev/null || true)
GIT_COMMIT ?= $(if $(shell git status --porcelain --untracked-files=no),"${COMMIT_NO}-dirty","${COMMIT_NO}")
BUILD_INFO ?= $(shell date +%s)
-LDFLAGS_PODMAN ?= $(LDFLAGS) -X main.gitCommit=$(GIT_COMMIT) -X main.buildInfo=$(BUILD_INFO)
+LIBPOD := ${PROJECT}/libpod
+LDFLAGS_PODMAN ?= $(LDFLAGS) -X $(LIBPOD).gitCommit=$(GIT_COMMIT) -X $(LIBPOD).buildInfo=$(BUILD_INFO)
ISODATE ?= $(shell date --iso-8601)
LIBSECCOMP_COMMIT := release-2.3