File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -27,18 +27,18 @@ SHELL := $(shell command -v bash 2>/dev/null)
27
27
.DEFAULT : runc
28
28
29
29
runc : $(SOURCES )
30
- go build -i -ldflags " -X main.gitCommit=${COMMIT} -X main.version=${VERSION} " -tags " $( BUILDTAGS) " -o runc .
30
+ go build -i $( EXTRA_FLAGS ) -ldflags " -X main.gitCommit=${COMMIT} -X main.version=${VERSION} $( EXTRA_LDFLAGS ) " -tags " $( BUILDTAGS) " -o runc .
31
31
32
32
all : runc recvtty
33
33
34
34
recvtty : contrib/cmd/recvtty/recvtty
35
35
36
36
contrib/cmd/recvtty/recvtty : $(SOURCES )
37
- go build -i -ldflags " -X main.gitCommit=${COMMIT} -X main.version=${VERSION} " -tags " $( BUILDTAGS) " -o contrib/cmd/recvtty/recvtty ./contrib/cmd/recvtty
37
+ go build -i $( EXTRA_FLAGS ) -ldflags " -X main.gitCommit=${COMMIT} -X main.version=${VERSION} $( EXTRA_LDFLAGS ) " -tags " $( BUILDTAGS) " -o contrib/cmd/recvtty/recvtty ./contrib/cmd/recvtty
38
38
39
39
static : $(SOURCES )
40
- CGO_ENABLED=1 go build -i -tags " $( BUILDTAGS) cgo static_build" -ldflags " -w -extldflags -static -X main.gitCommit=${COMMIT} -X main.version=${VERSION} " -o runc .
41
- CGO_ENABLED=1 go build -i -tags " $( BUILDTAGS) cgo static_build" -ldflags " -w -extldflags -static -X main.gitCommit=${COMMIT} -X main.version=${VERSION} " -o contrib/cmd/recvtty/recvtty ./contrib/cmd/recvtty
40
+ CGO_ENABLED=1 go build -i $( EXTRA_FLAGS ) -tags " $( BUILDTAGS) cgo static_build" -ldflags " -w -extldflags -static -X main.gitCommit=${COMMIT} -X main.version=${VERSION} $( EXTRA_LDFLAGS ) " -o runc .
41
+ CGO_ENABLED=1 go build -i $( EXTRA_FLAGS ) -tags " $( BUILDTAGS) cgo static_build" -ldflags " -w -extldflags -static -X main.gitCommit=${COMMIT} -X main.version=${VERSION} $( EXTRA_LDFLAGS ) " -o contrib/cmd/recvtty/recvtty ./contrib/cmd/recvtty
42
42
43
43
release :
44
44
@flag_list=(seccomp selinux apparmor static); \
@@ -62,7 +62,7 @@ release:
62
62
CGO_ENABLED=1; \
63
63
}; \
64
64
echo " Building target: $$ output" ; \
65
- go build -i -ldflags " $$ ldflags" -tags " $$ tags" -o " $$ output" . ; \
65
+ go build -i $( EXTRA_FLAGS ) -ldflags " $$ ldflags $( EXTRA_LDFLAGS ) " -tags " $$ tags" -o " $$ output" . ; \
66
66
done
67
67
68
68
dbuild : runcimage
You can’t perform that action at this time.
0 commit comments