From 43629272a88b1d2c0ea0bd35e28bab0b922ed41a Mon Sep 17 00:00:00 2001 From: Panu Matilainen Date: Apr 08 2014 10:30:58 +0000 Subject: - Allow opting out of config.{guess,sub} replacement hack (#991613) --- diff --git a/macros b/macros index 5bc6e5c..c44018b 100644 --- a/macros +++ b/macros @@ -29,6 +29,7 @@ #============================================================================== # ---- configure and makeinstall. # +%_configure_gnuconfig_hack 1 %_configure_libtool_hardening_hack 1 %_configure ./configure %configure \ @@ -37,7 +38,7 @@ FFLAGS="${FFLAGS:-%optflags -I%_fmoddir}" ; export FFLAGS ; \ FCFLAGS="${FCFLAGS:-%optflags -I%_fmoddir}" ; export FCFLAGS ; \ LDFLAGS="${LDFLAGS:-%__global_ldflags}"; export LDFLAGS; \ - for i in $(find . -name config.guess -o -name config.sub) ; do \ + [ "%_configure_gnuconfig_hack" = 1 ] && for i in $(find . -name config.guess -o -name config.sub) ; do \ [ -f /usr/lib/rpm/redhat/$(basename $i) ] && %{__rm} -f $i && %{__cp} -fv /usr/lib/rpm/redhat/$(basename $i) $i ; \ done ; \ [ "%_configure_libtool_hardening_hack" = 1 ] && [ x != "x%{_hardened_ldflags}" ] && \ diff --git a/redhat-rpm-config.spec b/redhat-rpm-config.spec index 19232d3..050e47c 100644 --- a/redhat-rpm-config.spec +++ b/redhat-rpm-config.spec @@ -141,6 +141,7 @@ install -p -m 644 -t %{buildroot}%{_rpmconfigdir}/macros.d macros.* %changelog * Tue Apr 08 2014 Panu Matilainen - 14-1 - Add Mono path macros (#1070936) +- Allow opting out of config.{guess,sub} replacement hack (#991613) * Tue Apr 08 2014 Panu Matilainen - 13-1 - Move the remaining dependency generator stuff to the kmp macro package