From aa17505778f5d304b76f328b04c41f5ca8e2bcc8 Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Tue, 24 Sep 2024 14:23:42 +0000 Subject: automatic import of openEuler-rpm-config --- macros | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/macros b/macros index 5b26cfc..887b846 100644 --- a/macros +++ b/macros @@ -177,7 +177,7 @@ %configure \ %{set_build_flags}; \ [ "%{_lto_cflags}"x != x ] && %{_fix_broken_configure_for_lto}; \ - [ "%{_ld_as_needed_flags}"x != x ] && %{__fix_libtool_from_moving_options_after_libs} ; \ + [ "%{?ld_as_needed:%{__fix_libtool_from_moving_options_after_libs}} ; \ [ "%_configure_gnuconfig_hack" = 1 ] && for i in $(find $(dirname %{_configure}) -name config.guess -o -name config.sub) ; do \ [ -f /usr/lib/rpm/%{_vendor}/$(basename $i) ] && %{__rm} -f $i && %{__cp} -fv /usr/lib/rpm/%{_vendor}/$(basename $i) $i ; \ done ; \ -- cgit v1.2.3