mirror of
https://github.com/kvazar-network/keva-stratum.git
synced 2025-01-26 23:04:42 +00:00
Use SRCDIR direcvite for CGO
This commit is contained in:
parent
8b415d878b
commit
8fe7ce8a9d
@ -1,7 +1,7 @@
|
||||
package cnutil
|
||||
|
||||
// #cgo CFLAGS: -std=c11 -D_GNU_SOURCE
|
||||
// #cgo LDFLAGS: -L. -lcnutil -lcnutilxx -lstdc++
|
||||
// #cgo LDFLAGS: -L${SRCDIR} -lcnutil -lcnutilxx -lstdc++
|
||||
// #include "cnutil.h"
|
||||
import "C"
|
||||
import "unsafe"
|
||||
|
@ -1,7 +1,7 @@
|
||||
package hashing
|
||||
|
||||
// #cgo CFLAGS: -std=c11 -D_GNU_SOURCE
|
||||
// #cgo LDFLAGS: -L. -lhashing -lstdc++
|
||||
// #cgo LDFLAGS: -L${SRCDIR} -lhashing -lstdc++
|
||||
// #include <stdlib.h>
|
||||
// #include <stdint.h>
|
||||
// #include "src/hashing.h"
|
||||
|
Loading…
x
Reference in New Issue
Block a user