Update tdlib_ping workflow and README to clarify CGO_CFLAGS usage for building TDLib from source. Adjust CGO_CFLAGS to point to the root of the TDLib clone, enhancing compatibility for users building from git.
This commit is contained in:
@@ -71,7 +71,8 @@ jobs:
|
||||
fi
|
||||
cd "${ROOT}"
|
||||
export CGO_ENABLED=1
|
||||
export CGO_CFLAGS="-I${TDLIB_ROOT}/td"
|
||||
# Корень клона td-src: там лежит td/telegram/td_json_client.h для #include <td/telegram/...>
|
||||
export CGO_CFLAGS="-I${TDLIB_ROOT}"
|
||||
export CGO_LDFLAGS="-L${DIST} -Wl,-rpath,\$ORIGIN -ltdjson"
|
||||
go build -tags=tdlib -trimpath -ldflags="-s -w" -o "${DIST}/${ASSET_BIN}" ./cmd/tdlib_ping
|
||||
chmod +x "${DIST}/${ASSET_BIN}"
|
||||
|
||||
Reference in New Issue
Block a user