Committed by
GitHub
Update sherpa-onnx-shared.pc.in (#2300)
Fix linking with C++ examples.
正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
| @@ -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@ |
-
请 注册 或 登录 后发表评论