Skip to content

luajit: patch out library from pkg-config entry when not used#1930

Merged
Frenzie merged 1 commit into
koreader:masterfrom
benoit-pierre:pr/fix_luajit_pkg-config_entry_when_library_is_not_used
Sep 8, 2024
Merged

luajit: patch out library from pkg-config entry when not used#1930
Frenzie merged 1 commit into
koreader:masterfrom
benoit-pierre:pr/fix_luajit_pkg-config_entry_when_library_is_not_used

Conversation

@benoit-pierre

@benoit-pierre benoit-pierre commented Sep 8, 2024

Copy link
Copy Markdown
Member

To prevent Lua modules from linking with it.


This change is Reviewable

To prevent Lua modules from linking with it.
@benoit-pierre

Copy link
Copy Markdown
Member Author

In preparation for using pkg-config to handle LuaJIT's compilation flags in some external projects (luajit.pc is currently not used).

@NiLuJe

NiLuJe commented Sep 8, 2024

Copy link
Copy Markdown
Member

Wasn't there a thing where on Android (and possibly macOS?), Lua/C modules needed to be explicitly linked to the luajit lib for... reasons?

@benoit-pierre

Copy link
Copy Markdown
Member Author

Yes, which is why it's only patched out when we don't use the luajit library.

@NiLuJe

NiLuJe commented Sep 8, 2024

Copy link
Copy Markdown
Member

Oh, duh'. Long day, sorry ;).

@Frenzie Frenzie merged commit 0efd201 into koreader:master Sep 8, 2024
@benoit-pierre benoit-pierre deleted the pr/fix_luajit_pkg-config_entry_when_library_is_not_used branch September 8, 2024 18:57
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.

3 participants