Skip to content

Use append_cflags instead of modifying CFLAGS directly #137

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

Merged
merged 1 commit into from
May 22, 2025

Conversation

skatkov
Copy link
Contributor

@skatkov skatkov commented May 20, 2025

Linux system with latest GCC 15 can't compile this gem. See more #136

Types of Changes

Use append_cflags instead of modifying CFLAGS directly

According to this thread
https://inbox.vuxu.org/ruby-core/[email protected]/T/

ed25519 gem had a similar issue, and it was resolved by migrating to append_cflags.
RubyCrypto/ed25519@c1ee0e0

Let's move this gem to append_cflags as well. This approach is recommended over modifying CFLAGS since it ensures compatibility across different build environments by checking whether the flag is acceptable, and should not affect most systems.

In the meantime, it appears that Nobu has merged a wider fix to ruby itself. But this improvement will not hurt in the long term.

Testing

Building this branch with bake build works on my machine. At the same time, main branch is failing.

Contribution

@skatkov
Copy link
Contributor Author

skatkov commented May 21, 2025

@ioquatix would appreciate it if you can take a look here. I got blocked with one of my client projects due to this.

@ioquatix
Copy link
Member

I will sort it out today.

@ioquatix ioquatix force-pushed the compilation-error branch from 3d64dac to d085761 Compare May 22, 2025 04:36
@ioquatix ioquatix merged commit 7e10776 into socketry:main May 22, 2025
36 of 48 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.

2 participants