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 LuaJIT build when LDFLAGS is defined #1667

Merged
merged 1 commit into from
Jun 19, 2024

Conversation

njfox
Copy link
Contributor

@njfox njfox commented Jun 19, 2024

The LuaJIT dependency was failing to compile when LDFLAGS was defined in the command line. This was uncovered in the AUR package when changes to makepkg flags caused LDFLAGS to be set when building the package without explicitly disabling buildoptions.

My understanding is that when LDFLAGS is set, the incorrect options (pkgconfig --libraries ...) were being picked up by the LuaJIT Makefile. This PR defines a separate LUAJIT_LDFLAGS variable, initialized to LDFLAGS, but without the additional options added by the pcsx-redux build, which allows any host options (like the security flags set by Arch's makepkg) to still be passed to LuaJIT without breaking it.

Please let me know if you have any feedback.

Thanks!

@nicolasnoble nicolasnoble merged commit 1712d1d into grumpycoders:main Jun 19, 2024
15 checks passed
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.

None yet

2 participants