From 56f548c2c8168ab2aedf209c849063ce94e97920 Mon Sep 17 00:00:00 2001 From: Jarek Prokop Date: Tue, 20 Jul 2021 17:38:30 +0200 Subject: [PATCH] Pass ldflags to gem install The commit is a cherry-pick from Fedora rawhide 6b2ff68f33447f7769ad8265b0dd966f007eab9c . The same comment on the changelog 3.0.1-138 was wrong. The purpose is to synchronize with Fedora rawhide 63065e7db7a3b02085280efbc783435ae40b9f1a . Related: rhbz#1938942 --- macros.rubygems | 2 +- ruby.spec | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) 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).