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

Can't set multiple flags in optflags #1482

Closed
djmarcin opened this issue Oct 14, 2020 · 1 comment
Closed

Can't set multiple flags in optflags #1482

djmarcin opened this issue Oct 14, 2020 · 1 comment

Comments

@djmarcin
Copy link

When trying to run:

RUBY_CONFIGURE_OPTS='optflags="-O3 -DRUBY_MARK_FREE_DEBUG=1 -DRGENGC_CHECK_MODE=2"' ./ruby-build 2.7.1 /home/vagrant/.asdf/installs/ruby/2.7.1

It fails with

configure: error: unrecognized option: `-DRUBY_MARK_FREE_DEBUG=1'

Debugging shows that the command line that ruby-build is trying to execute is

++ ./configure --prefix=/home/vagrant/.asdf/installs/ruby/2.7.1 'optflags="-O3' -DRUBY_MARK_FREE_DEBUG=1 '-DRGENGC_CHECK_MODE=2"' --enable-shared

I'm not sure why it is splitting the quoted arguments, but (at least in this case) it should not.

@hsbt
Copy link
Member

hsbt commented May 28, 2021

#1758 may resolved this issue.

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

No branches or pull requests

2 participants