Use SRCDIR direcvite for CGO

This commit is contained in:
Sammy Libre 2016-08-07 06:43:58 +05:00
parent 8b415d878b
commit 8fe7ce8a9d
2 changed files with 2 additions and 2 deletions

View File

@ -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"

View File

@ -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"