----- Original Message -----
From: "Vít Ondruch" <vondruch(a)redhat.com>
To: ruby-sig(a)lists.fedoraproject.org
Sent: Thursday, November 19, 2020 6:12:01 PM
Subject: Re: Ruby 3.0
@Pavel, could you please try to add `%{set_build_flags}` call prior
calling the `%gem_install`? That sets the `CXX` env variable. Does it help?
Sure, -
https://copr.fedorainfracloud.org/coprs/build/1775666
https://copr.fedorainfracloud.org/coprs/build/1775665
I'm afraid it didn't help. I've also tried setting CXX explicitly, and/or
adding this:
+sed -i "1i RbConfig::MAKEFILE_CONFIG['CXX'] = 'g++'" \
+ ext/extconf.rb
But it fails all the same. Here's another try, using CONFIG['CXX'] =
'g++':
https://copr.fedorainfracloud.org/coprs/build/1775762
Pavel
Vít
> So CONFIG["CXX"] is not yet set ( in /usr/lib64/ruby/rbconfig.rb on
> x86_64) (see:
>
https://lists.fedoraproject.org/archives/list/ruby-sig@lists.fedoraprojec...
>
> ) and still rubygem-eventmachine fails to find CXX compiler, while
> rawhide ruby-libs rpm has CONFIG["CXX"] value.
>
> Regards,
> Mamoru