DSOE1024
Committed by GitHub

Update sherpa-onnx-shared.pc.in (#2300)

Fix linking with C++ examples.
@@ -22,4 +22,4 @@ Cflags: -I"${includedir}" @@ -22,4 +22,4 @@ Cflags: -I"${includedir}"
22 # Note: -lcargs is required only for the following file 22 # Note: -lcargs is required only for the following file
23 # https://github.com/k2-fsa/sherpa-onnx/blob/master/c-api-examples/decode-file-c-api.c 23 # https://github.com/k2-fsa/sherpa-onnx/blob/master/c-api-examples/decode-file-c-api.c
24 # We add it here so that users don't need to specify -lcargs when compiling decode-file-c-api.c 24 # We add it here so that users don't need to specify -lcargs when compiling decode-file-c-api.c
25 -Libs: -L"${libdir}" -lsherpa-onnx-c-api -lonnxruntime -Wl,-rpath,${libdir} @SHERPA_ONNX_PKG_WITH_CARGS@ @SHERPA_ONNX_PKG_CONFIG_EXTRA_LIBS@ 25 +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@