From 701a2a2440d2a6de3a6e2f01b4f60debe8aaaac3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Michaud?= Date: Sun, 23 Jul 2023 19:35:54 +0200 Subject: [PATCH] libtokenizers.a path should not depend on build source directory By relatively locating the library, one can just drop the pre-built library in their own project to make it work. --- tokenizer.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tokenizer.go b/tokenizer.go index b0c39ae7..92338f0d 100644 --- a/tokenizer.go +++ b/tokenizer.go @@ -3,7 +3,7 @@ package tokenizers // TODO packaging: how do we build the rust lib for distribution? /* -#cgo LDFLAGS: ${SRCDIR}/libtokenizers.a -ldl -lstdc++ +#cgo LDFLAGS: libtokenizers.a -ldl -lm -lstdc++ #include #include "tokenizers.h" */