Skip to content

Commit c9c1d76

Browse files
committed
Allow users to build against podman-sequoia in non-default locations
This mirrors the same Make veriable in Skopeo and (proposed) Podman. Signed-off-by: Miloslav Trmač <[email protected]>
1 parent ae46726 commit c9c1d76

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,9 @@ SOURCE_DATE_EPOCH ?= $(if $(shell date +%s),$(shell date +%s),$(error "date fail
3737
COMMENT := \#
3838
CNI_COMMIT := $(shell sed -n 's;^$(COMMENT) github.com/containernetworking/cni \([^ \n]*\).*$$;\1;p' vendor/modules.txt)
3939

40+
SEQUOIA_SONAME_DIR =
4041
EXTRA_LDFLAGS ?=
41-
BUILDAH_LDFLAGS := $(GO_LDFLAGS) '-X main.GitCommit=$(GIT_COMMIT) -X main.buildInfo=$(SOURCE_DATE_EPOCH) -X main.cniVersion=$(CNI_COMMIT) $(EXTRA_LDFLAGS)'
42+
BUILDAH_LDFLAGS := $(GO_LDFLAGS) '-X main.GitCommit=$(GIT_COMMIT) -X main.buildInfo=$(SOURCE_DATE_EPOCH) -X main.cniVersion=$(CNI_COMMIT) -X go.podman.io/image/v5/signature/internal/sequoia.sequoiaLibraryDir="$(SEQUOIA_SONAME_DIR)" $(EXTRA_LDFLAGS)'
4243

4344
# This isn't what we actually build; it's a superset, used for target
4445
# dependencies. Basically: all *.go and *.c files, except *_test.go,

0 commit comments

Comments
 (0)