Build Go bindings with -lm Needed on Linux, should be harmless on Darwin.
Project: http://git-wip-us.apache.org/repos/asf/lucy/repo Commit: http://git-wip-us.apache.org/repos/asf/lucy/commit/a7a652f3 Tree: http://git-wip-us.apache.org/repos/asf/lucy/tree/a7a652f3 Diff: http://git-wip-us.apache.org/repos/asf/lucy/diff/a7a652f3 Branch: refs/heads/master Commit: a7a652f37b5fa7bd9ff66cd0ee6786a91720232d Parents: f0500e3 Author: Nick Wellnhofer <wellnho...@aevum.de> Authored: Thu Mar 3 14:54:20 2016 +0100 Committer: Nick Wellnhofer <wellnho...@aevum.de> Committed: Thu Mar 3 14:54:20 2016 +0100 ---------------------------------------------------------------------- go/build.go | 1 + 1 file changed, 1 insertion(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/lucy/blob/a7a652f3/go/build.go ---------------------------------------------------------------------- diff --git a/go/build.go b/go/build.go index ad951f8..8353d66 100644 --- a/go/build.go +++ b/go/build.go @@ -537,6 +537,7 @@ func writeConfigGO() { "// #cgo LDFLAGS: -L%s\n"+ "// #cgo LDFLAGS: -llucy\n"+ "// #cgo LDFLAGS: -lclownfish\n"+ + "// #cgo LDFLAGS: -lm\n"+ "import \"C\"\n", buildDir, buildDir, buildDir, buildDir, installedLibDir, cfLibDir) ioutil.WriteFile(configGO, []byte(content), 0666)