Skip to content

Commit 16521a9

Browse files
committed
Fix CGO LDFLAGS
1 parent 41112d2 commit 16521a9

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

go/cpossum/c-possum.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
package possumC
22

33
/*
4-
// Not sure how to statically link just this library, so for now it's preferred to use CGO_LDFLAGS
5-
// to do your own thing.
6-
//#cgo LDFLAGS: -lpossum
4+
#cgo LDFLAGS: -L${SRCDIR}/../../target/debug -lpossum
75
#include "possum.h"
86
*/
97
import "C"

go/justfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
test:
22
cargo build
33
make -C ..
4-
CGO_LDFLAGS=../target/debug/libpossum.a go test -race ./...
4+
go test -race ./...

0 commit comments

Comments
 (0)