diff --git a/build.go b/build.go index 2f5c2da..faa67cd 100644 --- a/build.go +++ b/build.go @@ -8,8 +8,8 @@ package west // #cgo darwin,amd64 LDFLAGS: -L${SRCDIR}/lib/x86_64-darwin -lwest // #cgo darwin,arm64 LDFLAGS: -L${SRCDIR}/lib/aarch64-darwin -lwest -// #cgo linux,amd64 LDFLAGS: -L${SRCDIR}/lib/x86_64-linux -lwest -// #cgo linux,arm64 LDFLAGS: -L${SRCDIR}/lib/aarch64-linux -lwest +// #cgo linux,amd64 LDFLAGS: -L${SRCDIR}/lib/x86_64-linux -lwest -lm +// #cgo linux,arm64 LDFLAGS: -L${SRCDIR}/lib/aarch64-linux -lwest -lm // #cgo windows,amd64 LDFLAGS: -L${SRCDIR}/lib/x86_64-windows -lwest // #cgo windows,arm64 LDFLAGS: -L${SRCDIR}/lib/aarch64-windows -lwest import "C" diff --git a/build_dev.go b/build_dev.go index 44032ae..63a6bed 100644 --- a/build_dev.go +++ b/build_dev.go @@ -6,5 +6,5 @@ package west -// #cgo LDFLAGS: -L${SRCDIR}/target/debug -lwest_sys +// #cgo LDFLAGS: -L${SRCDIR}/target/debug -lwest_sys -lm import "C"