File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -2,9 +2,10 @@ package possumC
2
2
3
3
/*
4
4
// 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
5
+ // the library at runtime. I can't seem to get CGO on macOS to do the same. I can't get a reliable
6
+ // Windows system to get to the point I can actually build this, so I don't know how it works there.
7
+ #cgo !windows && !darwin LDFLAGS: -L${SRCDIR}/../../target/debug -l:libpossum.a -lm
8
+ #cgo darwin || windows LDFLAGS: -L${SRCDIR}/../../target/debug -lpossum
8
9
#include "possum.h"
9
10
*/
10
11
import "C"
You can’t perform that action at this time.
0 commit comments