c/sqlite: use pkg-config

This commit is contained in:
xushiwei
2024-06-15 10:02:54 +08:00
parent dd35f2c14d
commit 12c262621e
3 changed files with 6 additions and 2 deletions

View File

@@ -23,7 +23,7 @@ import (
)
const (
LLGoPackage = "link: $(pkg-config --libs libcjson)"
LLGoPackage = "link: $(pkg-config --libs libcjson); -lcjson"
)
// llgo:type C

View File

@@ -22,6 +22,10 @@ import (
"github.com/goplus/llgo/c"
)
const (
LLGoPackage = "decl"
)
//go:linkname Acos C.acos
func Acos(x float64) float64

View File

@@ -23,7 +23,7 @@ import (
)
const (
LLGoPackage = "link: sqlite3"
LLGoPackage = "link: $(pkg-config --libs sqlite3); -lsqlite3"
)
// llgo:type C