We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0879105 commit 603497fCopy full SHA for 603497f
go/cpossum/c-possum.go
@@ -1,7 +1,10 @@
1
package possumC
2
3
/*
4
-#cgo LDFLAGS: -L${SRCDIR}/../../target/debug -lpossum
+// I think we trigger static linking on Linux because we don't want to have to specify the path to
5
+// the library at runtime. I can't seem to get CGO on macOS to do the same.
6
+#cgo !darwin LDFLAGS: -L${SRCDIR}/../../target/debug -l:libpossum.a -lm
7
+#cgo darwin LDFLAGS: -L${SRCDIR}/../../target/debug -lpossum
8
#include "possum.h"
9
*/
10
import "C"
0 commit comments