Skip to content

Commit

Permalink
fix: link m on Linux
Browse files Browse the repository at this point in the history
Signed-off-by: Roman Volosatovs <[email protected]>
  • Loading branch information
rvolosatovs committed Sep 18, 2024
1 parent 8f2fa6a commit a7c28eb
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
14 changes: 8 additions & 6 deletions build.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,12 @@

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 windows,amd64 LDFLAGS: -L${SRCDIR}/lib/x86_64-windows -lwest
// #cgo windows,arm64 LDFLAGS: -L${SRCDIR}/lib/aarch64-windows -lwest
// #cgo LDFLAGS: -lwest
// #cgo linux LDFLAGS: -lm
// #cgo darwin,amd64 LDFLAGS: -L${SRCDIR}/lib/x86_64-darwin
// #cgo darwin,arm64 LDFLAGS: -L${SRCDIR}/lib/aarch64-darwin
// #cgo linux,amd64 LDFLAGS: -L${SRCDIR}/lib/x86_64-linux
// #cgo linux,arm64 LDFLAGS: -L${SRCDIR}/lib/aarch64-linux
// #cgo windows,amd64 LDFLAGS: -L${SRCDIR}/lib/x86_64-windows
// #cgo windows,arm64 LDFLAGS: -L${SRCDIR}/lib/aarch64-windows
import "C"
1 change: 1 addition & 0 deletions build_dev.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@
package west

// #cgo LDFLAGS: -L${SRCDIR}/target/debug -lwest_sys
// #cgo linux LDFLAGS: -lm
import "C"

0 comments on commit a7c28eb

Please sign in to comment.