Skip to content

Allow build time --with-cflags option to work - #123

Merged
SpringMT merged 2 commits into
SpringMT:mainfrom
complex857:patch-1
Aug 22, 2026
Merged

Allow build time --with-cflags option to work#123
SpringMT merged 2 commits into
SpringMT:mainfrom
complex857:patch-1

Conversation

@complex857

Copy link
Copy Markdown
Contributor

The current extconfg.rb overwrites $CFLAGS variable breaking usual gem install zstd-ruby -- --with-cflags="..." way of setting it

I ran into this when trying to compile the gem with musl on arm64 where a PATH_MAX constant is not set, and couldn't get gem command to add it to the generated makefile with --with-cflags

As a workaround --with-cppflags="..." works because that is already with += in extconf, but i see no reason why break normal cflags

The current extconfg.rb overwrites $CFLAGS variable breaking usual gem -- --with-cflags="..." way of setting it
Fix build, added cflags need padding
@SpringMT
SpringMT merged commit e888a83 into SpringMT:main Aug 22, 2026
7 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