Makefile: support cross-compilation#16
Merged
rail5 merged 1 commit intorail5:mainfrom May 1, 2026
Merged
Conversation
b0e5335 to
5ba883c
Compare
5ba883c to
80c3bde
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Checks
[✓] The code follows the general style of this project
[✓] All tests are passing within this branch (
make test)[ ] Appropriate regression tests have been added (if new functionality is being introduced)
[ ] No new tests are required
Description
I changed the Makefile so people can cross-build and package it without patching anything, just by passing a different compiler/toolchain and flags from the environment. I also cleaned up the flags by using the standard CPPFLAGS/CXXFLAGS/LDFLAGS split and stopped forcing -s in compile flags so debug builds and distro hardening don’t get messed up
License Agreement
I hereby confirm that the work submitted in this pull request is my own and I agree that my contributions will be licensed under the same license as the project, which is the GNU General Public License v3.0 or later (GPL-3.0-or-later).