diff --git a/macros.rubygems b/macros.rubygems index 3f72b14..8c4d067 100644 --- a/macros.rubygems +++ b/macros.rubygems @@ -22,7 +22,7 @@ %gem_install(d:n:) \ 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 \\\ -V \\\ --local \\\ diff --git a/ruby.spec b/ruby.spec index 5ea6891..301e474 100644 --- a/ruby.spec +++ b/ruby.spec @@ -1348,6 +1348,8 @@ MSPECOPTS="" - Fix StartTLS stripping vulnerability in Net::IMAP (CVE-2021-32066) - Fix dependencies of gems with explicit source installed from a different source. (CVE-2020-36327) +- Pass ldflags to gem install via CONFIGURE_ARGS. + The same comment on the changelog 3.0.1-138 was wrong. * Mon Jun 07 2021 Jarek Prokop - 3.0.1-138 - Upgrade to Ruby 3.0.1 by merging Fedora rawhide branch (commit: 6b2ff68).