From 274d2550c1317de637f9a6f28ca5fe65214e2b0b Mon Sep 17 00:00:00 2001 From: Roman Volosatovs Date: Wed, 18 Sep 2024 11:49:30 +0200 Subject: [PATCH] fix: link `m` on Linux Signed-off-by: Roman Volosatovs --- build.go | 4 ++-- build_dev.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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"