Commit 8278018
skitsanos
fix: Use portable rpath for binary distribution
Embed @executable_path/lib and @executable_path rpaths so the binary
finds sherpa-onnx dylibs relative to itself, not hardcoded to the
build machine path. Enables portable distribution as:
transcribeit (binary)
lib/libsherpa-onnx-c-api.dylib
lib/libonnxruntime.dylib
Linux uses $ORIGIN/lib and $ORIGIN equivalents.1 parent 9857591 commit 8278018
1 file changed
+13
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
22 | 33 | | |
23 | 34 | | |
24 | 35 | | |
| |||
0 commit comments