Skip to content

Commit 462c8b2

Browse files
committed
build static executable
1 parent 5c7a179 commit 462c8b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ sub build {
6363
&gen_bindata();
6464

6565
# build it
66-
my $cmd = qq{go build -ldflags "-X main.VERSION=$version" -o zfs-snap-diff};
66+
my $cmd = qq{CGO_ENABLED=0 go build -ldflags "-X main.VERSION=$version" -o zfs-snap-diff};
6767
say "build 'zfs-snap-diff' ($cmd)";
6868
system($cmd) == 0 or die "build error";
6969
}

0 commit comments

Comments
 (0)