From 5125f51ce98d181da5163d63479755f34e037b27 Mon Sep 17 00:00:00 2001 From: Pavel Valena Date: Mon, 16 Aug 2021 12:28:46 +0200 Subject: [PATCH] Pass ldflags to gem install The commit is a cherry-pick from Fedora rawhide 6b2ff68f33447f7769ad8265b0dd966f007eab9c . The purpose is to synchronize with Fedora rawhide 63065e7db7a3b02085280efbc783435ae40b9f1a . Related: rhbz#1968507 --- macros.rubygems | 2 +- ruby.spec | 1 + 2 files changed, 2 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 c3604a9..670aea6 100644 --- a/ruby.spec +++ b/ruby.spec @@ -1433,6 +1433,7 @@ MSPECOPTS="" - Fix dependencies of gems with explicit source installed from a different source. Resolves: CVE-2020-36327 +- Pass ldflags to gem install via CONFIGURE_ARGS. * Thu Aug 19 2021 Carlos O'Donell - 3.0.1-153 - Rebuilt for libffi 3.4.2 SONAME transition.