From a26d30be3c32414b3ec2733848976bd05980e971 Mon Sep 17 00:00:00 2001 From: luoliwoshang <2643523683@qq.com> Date: Fri, 14 Jun 2024 10:40:46 +0800 Subject: [PATCH] llgo/x/cjson:link cjson by pkg-config --- c/cjson/README.md | 6 +++++- c/cjson/cjson.go | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/c/cjson/README.md b/c/cjson/README.md index b1326213..a76286a9 100644 --- a/c/cjson/README.md +++ b/c/cjson/README.md @@ -7,7 +7,11 @@ LLGo wrapper of DaveGamble/cJSON [![Language](https://img.shields.io/badge/language-Go+-blue.svg)](https://github.com/goplus/gop) ## How to install - +### on macOS (Homebrew) +```sh +brew install cjson +``` +### from source code ```sh git clone https://github.com/goplus/cjson.git cd cjson diff --git a/c/cjson/cjson.go b/c/cjson/cjson.go index e638e551..ea1872b4 100644 --- a/c/cjson/cjson.go +++ b/c/cjson/cjson.go @@ -23,7 +23,7 @@ import ( ) const ( - LLGoPackage = "link: cjson" + LLGoPackage = "link: $(pkg-config --libs libcjson)" ) // llgo:type C