summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorAshley Cui <acui@redhat.com>2022-02-28 09:54:15 -0500
committerAshley Cui <acui@redhat.com>2022-02-28 16:24:15 -0500
commit2e14c72707afc1625874b5fd4367b0bc418994a1 (patch)
treebe229b5608c9fada17cfbdf83f7c9d32d7ac6cb0 /Makefile
parent569319d3970c2e94e4c6586d4bb17e5cfc108fdf (diff)
downloadpodman-2e14c72707afc1625874b5fd4367b0bc418994a1.tar.gz
podman-2e14c72707afc1625874b5fd4367b0bc418994a1.tar.bz2
podman-2e14c72707afc1625874b5fd4367b0bc418994a1.zip
Allow setting binarypath from Makefile
Packagers for other distributions and package managers may put their helper binaries in other location prefixes. Add HELPER_BINARIES_DIR to the makefile so packagers can set the prefix when building Podman. HELPER_BINARIES_DIR will be set at link-time. Example usage: make podman-remote HELPER_BINARIES_DIR=/my/location/prefix Signed-off-by: Ashley Cui <acui@redhat.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index cb230d8e9..a62e95aab 100644
--- a/Makefile
+++ b/Makefile
@@ -102,6 +102,7 @@ LDFLAGS_PODMAN ?= \
-X $(LIBPOD)/define.buildInfo=$(BUILD_INFO) \
-X $(LIBPOD)/config._installPrefix=$(PREFIX) \
-X $(LIBPOD)/config._etcDir=$(ETCDIR) \
+ -X github.com/containers/common/pkg/config.additionalHelperBinariesDir=$(HELPER_BINARIES_DIR)\
$(EXTRA_LDFLAGS)
LDFLAGS_PODMAN_STATIC ?= \
$(LDFLAGS_PODMAN) \