Skip to content

Commit b4716e2

Browse files
authored
Update sherpa-onnx-shared.pc.in (#2300)
Fix linking with C++ examples.
1 parent 2913cce commit b4716e2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cmake/sherpa-onnx-shared.pc.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@ Cflags: -I"${includedir}"
2222
# Note: -lcargs is required only for the following file
2323
# https://github.com/k2-fsa/sherpa-onnx/blob/master/c-api-examples/decode-file-c-api.c
2424
# 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@

0 commit comments

Comments
 (0)