From 8fe7ce8a9d044ef5086e3d263df7a701067f59b7 Mon Sep 17 00:00:00 2001 From: Sammy Libre Date: Sun, 7 Aug 2016 06:43:58 +0500 Subject: [PATCH] Use SRCDIR direcvite for CGO --- cnutil/cnutil.go | 2 +- hashing/hashing.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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"