From b4716e29a6ceab8d12c85359f3408f1bce33935d Mon Sep 17 00:00:00 2001 From: DSOE1024 <90103853+DSOE1024@users.noreply.github.com> Date: Tue, 17 Jun 2025 16:55:42 +0800 Subject: [PATCH] Update sherpa-onnx-shared.pc.in (#2300) Fix linking with C++ examples. --- cmake/sherpa-onnx-shared.pc.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/sherpa-onnx-shared.pc.in b/cmake/sherpa-onnx-shared.pc.in index e0b0eea1..724a5393 100644 --- a/cmake/sherpa-onnx-shared.pc.in +++ b/cmake/sherpa-onnx-shared.pc.in @@ -22,4 +22,4 @@ Cflags: -I"${includedir}" # Note: -lcargs is required only for the following file # https://github.com/k2-fsa/sherpa-onnx/blob/master/c-api-examples/decode-file-c-api.c # We add it here so that users don't need to specify -lcargs when compiling decode-file-c-api.c -Libs: -L"${libdir}" -lsherpa-onnx-c-api -lonnxruntime -Wl,-rpath,${libdir} @SHERPA_ONNX_PKG_WITH_CARGS@ @SHERPA_ONNX_PKG_CONFIG_EXTRA_LIBS@ +Libs: -L"${libdir}" -lsherpa-onnx-cxx-api -lsherpa-onnx-c-api -lonnxruntime -Wl,-rpath,${libdir} @SHERPA_ONNX_PKG_WITH_CARGS@ @SHERPA_ONNX_PKG_CONFIG_EXTRA_LIBS@