diff --git a/build-deps.sh b/build-deps.sh new file mode 100755 index 0000000..77b3e7c --- /dev/null +++ b/build-deps.sh @@ -0,0 +1,13 @@ +#!/bin/bash +set -ex + +pushd "${0%/*}" + +pushd c-gaborator +if [[ -d "build" ]]; then + rm -r build +fi +mkdir build +pushd build +cmake .. +make -j$(nproc) \ No newline at end of file diff --git a/goborator.go b/goborator.go index 9d3c278..d4fc45d 100644 --- a/goborator.go +++ b/goborator.go @@ -1,7 +1,7 @@ package goborator // #cgo CFLAGS: -I${SRCDIR}/c-gaborator -// #cgo LDFLAGS: -L${SRCDIR}/c-gaborator/build -lcgaborator -lm -lstdc++ +// #cgo LDFLAGS: -L${SRCDIR}/c-gaborator/build -L${SRCDIR} -lcgaborator -lm -lstdc++ // #include "cgaborator.h" import "C" import ( diff --git a/libcgaborator.a b/libcgaborator.a new file mode 100644 index 0000000..41ae33e Binary files /dev/null and b/libcgaborator.a differ