Skip to content

update ffi-cdecl + some related fixups#2325

Merged
Frenzie merged 9 commits intokoreader:masterfrom
benoit-pierre:pr/ffi-cdecl_fixups
Apr 5, 2026
Merged

update ffi-cdecl + some related fixups#2325
Frenzie merged 9 commits intokoreader:masterfrom
benoit-pierre:pr/ffi-cdecl_fixups

Conversation

@benoit-pierre
Copy link
Copy Markdown
Member

@benoit-pierre benoit-pierre commented Apr 4, 2026

This change is Reviewable

Even on macOS, it's compiled to a `.so`.
When building for the emulator, to avoid potential dynamic linker
path issues at runtime (e.g. on macOS when using Homebrew's GCC).
To build only those projects necessary for generating FFI cdecls.
Don't enable by default on kindle-legacy (toolchain `dev_t` type definition is borked).
Enable for Kobo targets, not Kindle…
@Frenzie
Copy link
Copy Markdown
Member

Frenzie commented Apr 4, 2026

Even on macOS, it's compiled to a .so.

Is that just what GCC does or is that technically an oversight in ffi-cdecl?

@benoit-pierre
Copy link
Copy Markdown
Member Author

The gcc-lua build system does not special case macOS, I don't thing GCC care about the extension.

-e "s,@CXX@,${CMAKE_CXX_COMPILER},"
-e "s,@PREFIX@,${STAGING_DIR},"
-e "s,@PLUGIN@,${STAGING_DIR}/lib/gcc/plugin/gcclua${LIB_EXT},"
-e "s,@PLUGIN@,${STAGING_DIR}/lib/gcc/plugin/gcclua.so,"
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this context allow for comments? Seeing this would make me think it was an oversight.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, but it's also not the only instance where we always create a .so, even on macOS (koreader-lfs, lpeg, luasocket, luasec, lua-rapidjson).

@Frenzie Frenzie merged commit bfa76ef into koreader:master Apr 5, 2026
3 checks passed
@benoit-pierre benoit-pierre deleted the pr/ffi-cdecl_fixups branch April 5, 2026 19:15
benoit-pierre added a commit to benoit-pierre/koreader that referenced this pull request Apr 5, 2026
- openssh: update to 10.3p1 (koreader/koreader-base#2323)
- cmake: misc tweaks (koreader/koreader-base#2324)
- update ffi-cdecl + some related fixups (koreader/koreader-base#2325)
Frenzie pushed a commit to koreader/koreader that referenced this pull request Apr 5, 2026
- openssh: update to 10.3p1 (koreader/koreader-base#2323)
- cmake: misc tweaks (koreader/koreader-base#2324)
- update ffi-cdecl + some related fixups (koreader/koreader-base#2325)
Saterz pushed a commit to Saterz/koreader that referenced this pull request Apr 6, 2026
- openssh: update to 10.3p1 (koreader/koreader-base#2323)
- cmake: misc tweaks (koreader/koreader-base#2324)
- update ffi-cdecl + some related fixups (koreader/koreader-base#2325)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants