Commit 4e98bad
fix(c examples): link pact_ffi cdylib instead of staticlib to pull in vendored Lua
corrosion defaults to linking consumers against the pact_ffi staticlib, but
mlua's vendored Lua build is only baked in by cargo when linking the cdylib,
causing undefined lua_* symbol errors when building the C consumer/provider
examples. Restrict corrosion_import_crate to the cdylib crate type so it
links against libpact_ffi.so instead.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>1 parent d947345 commit 4e98bad
2 files changed
Lines changed: 14 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
53 | 59 | | |
54 | 60 | | |
| 61 | + | |
55 | 62 | | |
56 | 63 | | |
57 | 64 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
52 | 58 | | |
53 | 59 | | |
| 60 | + | |
54 | 61 | | |
55 | 62 | | |
56 | 63 | | |
| |||
0 commit comments