Pass ldflags to gem install

We have them, so we may as well pass them. This also fixes building ruby
gems with clang.
This commit is contained in:
Timm Bäder 2021-05-17 08:54:53 +02:00 committed by pvalena
parent e6a3dff909
commit 6b2ff68f33
2 changed files with 5 additions and 2 deletions

View File

@ -22,7 +22,7 @@
%gem_install(d:n:) \ %gem_install(d:n:) \
mkdir -p %{-d*}%{!?-d:.%{gem_dir}} \ mkdir -p %{-d*}%{!?-d:.%{gem_dir}} \
\ \
CONFIGURE_ARGS="--with-cflags='%{optflags}' --with-cxxflags='%{optflags}' $CONFIGURE_ARGS" \\\ CONFIGURE_ARGS="--with-cflags='%{optflags}' --with-cxxflags='%{optflags}' --with-ldflags='%{build_ldflags}' $CONFIGURE_ARGS" \\\
gem install \\\ gem install \\\
-V \\\ -V \\\
--local \\\ --local \\\

View File

@ -22,7 +22,7 @@
%endif %endif
%global release 148 %global release 149
%{!?release_string:%define release_string %{?development_release:0.}%{release}%{?development_release:.%{development_release}}%{?dist}} %{!?release_string:%define release_string %{?development_release:0.}%{release}%{?development_release:.%{development_release}}%{?dist}}
# The RubyGems library has to stay out of Ruby directory tree, since the # The RubyGems library has to stay out of Ruby directory tree, since the
@ -1355,6 +1355,9 @@ MSPECOPTS=""
%changelog %changelog
* Mon May 17 2021 Timm Bäder <tbaeder@redhat.com> - 3.0.1-149
- Pass ldflags to gem install via CONFIGURE_ARGS
* Tue Apr 06 2021 Vít Ondruch <vondruch@redhat.com> - 3.0.1-148 * Tue Apr 06 2021 Vít Ondruch <vondruch@redhat.com> - 3.0.1-148
- Upgrade to Ruby 3.0.1. - Upgrade to Ruby 3.0.1.