Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix build with external lua #300

Merged
merged 1 commit into from
Jan 20, 2024
Merged

fix build with external lua #300

merged 1 commit into from
Jan 20, 2024

Conversation

ksqsf
Copy link
Contributor

@ksqsf ksqsf commented Dec 31, 2023

LUA_LIBRARIES only includes lua;m which does not contain any information about link directories. When the plugin is really compiled using external Lua, the linker flags will only contain -llua -lm without -L{lua_libdir}, and the linker will complain that it cannot find lua. (an example.)

This PR fixes this problem by linking with PkgConfig::LUA which contains full information about linker flags.

@hchunhui
Copy link
Owner

Thanks!

@hchunhui hchunhui merged commit db435b8 into hchunhui:master Jan 20, 2024
4 checks passed
shewer added a commit to shewer/librime-lua that referenced this pull request Feb 14, 2024
Signed-off-by: shewer <shewer@gmail.com>
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