diff --git a/cnutil/cnutil.go b/cnutil/cnutil.go index b9be7db..4fb1892 100644 --- a/cnutil/cnutil.go +++ b/cnutil/cnutil.go @@ -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" diff --git a/hashing/hashing.go b/hashing/hashing.go index 4c44847..803f50a 100644 --- a/hashing/hashing.go +++ b/hashing/hashing.go @@ -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 // #include // #include "src/hashing.h"