Skip to content

[test] Respect user's CFLAGS more than our own added ones; remove EXTRA_CFLAGS #271

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Quuxplusone
Copy link
Collaborator

See also commit 747bb96, from ten years ago, which first made us respect the user's CFLAGS here at all. But we still appended our own flags (e.g. -I../src -Wall) to the end of the command line, so the user couldn't override any of ours with their own.

GNU's guidelines seem like a good way to go:

https://www.gnu.org/prep/standards/html_node/Command-Variables.html

The EXTRA_CFLAGS variable was introduced to force options to the end of the command line. Now that the user's CFLAGS are properly at the end, we can replace our use of EXTRA_CFLAGS with just CFLAGS.

All of this affects only how the tests are compiled, not anything about the library itself.

…RA_CFLAGS

See also commit 747bb96, from ten years ago, which first made us
respect the user's CFLAGS here at all. But we still appended our own
flags (e.g. `-I../src -Wall`) to the end of the command line, so the
user couldn't override any of ours with their own.

GNU's guidelines seem like a good way to go:
> https://www.gnu.org/prep/standards/html_node/Command-Variables.html

The EXTRA_CFLAGS variable was introduced to force options to the end
of the command line. Now that the user's CFLAGS are properly at the end,
we can replace our use of EXTRA_CFLAGS with just CFLAGS.

All of this affects only how the tests are compiled, not anything about
the library itself.
@Quuxplusone Quuxplusone mentioned this pull request Mar 15, 2025
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.

1 participant