Commit df4e7fb
fix(c examples): point loader at the build dir so pact_ffi's dylib is found
Since the C examples now link pact_ffi's cdylib (needed to pull in vendored
Lua), the loader must be able to find libpact_ffi.so/.dylib/.dll at runtime.
pact_ffi's build.rs intentionally gives the macOS dylib a bare install name
(for discovery via a well-known system path like /usr/local/lib), so it
isn't found relative to the executable; on Windows, corrosion copies the DLL
to the top-level build dir while multi-config generators place the .exe in
build/Release. Point LD_LIBRARY_PATH/DYLD_LIBRARY_PATH/PATH at ./build when
running the examples so the loader finds it on all three platforms.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>1 parent 4e98bad commit df4e7fb
2 files changed
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
0 commit comments