File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -4,8 +4,10 @@ package possumC
44// I think we trigger static linking on Linux because we don't want to have to specify the path to
55// the library at runtime. I can't seem to get CGO on macOS to do the same. I can't get a reliable
66// 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
7+ // Also cgo directives seem to use the old build constraint syntax. Why the fuck isn't this stuff
8+ // documented?
9+ #cgo !windows,!darwin LDFLAGS: -L${SRCDIR}/../../target/debug -l:libpossum.a -lm
10+ #cgo darwin windows LDFLAGS: -L${SRCDIR}/../../target/debug -lpossum
911#include "possum.h"
1012*/
1113import "C"
You can’t perform that action at this time.
0 commit comments