Skip to content

Commit 8e90bcd

Browse files
committed
make: Ensure that libc is linked statically
Set the `-static` ldflag to ensure that even glibc is linked statically. Signed-off-by: Michal Rostecki <vadorovsky@gmail.com>
1 parent 636f420 commit 8e90bcd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ clean:
1111
-rm ./SecretScanner
1212

1313
SecretScanner: $(PWD)/**/*.go $(PWD)/agent-plugins-grpc/proto/*.go
14-
go build -buildvcs=false -v .
14+
go build -ldflags="-extldflags=-static" -buildvcs=false -v .
1515

1616
.PHONY: clean

0 commit comments

Comments
 (0)