Skip to content

Commit

Permalink
Merge pull request #67 from Virtomize/issue-66
Browse files Browse the repository at this point in the history
issue #66 glibc dependency error
  • Loading branch information
c-seeger authored Jun 17, 2021
2 parents 6507cd5 + e1e8d90 commit 9612853
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions magefile.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ func Build() error {
return err
}

return sh.RunV("go", "build", "-o", binPath+"/"+binName)
return sh.RunV("go", "build", "-a", "-tags", "netgo", "-o", binPath+"/"+binName, "-ldflags", "-w -extldflags \"-static\"")
}

// CreateRelease - mage build
Expand Down Expand Up @@ -66,7 +66,7 @@ func CreateRelease() error {
return err
}

err = sh.RunV("go", "build", "-o", path+binName)
err = sh.RunV("go", "build", "-a", "-tags", "netgo", "-o", path+binName, "-ldflags", "-w -extldflags \"-static\"")
if err != nil {
return err
}
Expand Down

0 comments on commit 9612853

Please sign in to comment.