diff options
author | Ashley Cui <acui@redhat.com> | 2022-02-28 09:54:15 -0500 |
---|---|---|
committer | Ashley Cui <acui@redhat.com> | 2022-02-28 16:24:15 -0500 |
commit | 2e14c72707afc1625874b5fd4367b0bc418994a1 (patch) | |
tree | be229b5608c9fada17cfbdf83f7c9d32d7ac6cb0 /Makefile | |
parent | 569319d3970c2e94e4c6586d4bb17e5cfc108fdf (diff) | |
download | podman-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-- | Makefile | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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) \ |