From 641419cf7f0929d6494b8235f78f6560f7a76140 Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Thu, 26 Sep 2024 04:04:44 +0000 Subject: automatic import of libtool --- libtool.spec | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'libtool.spec') diff --git a/libtool.spec b/libtool.spec index cf6ad3c..cd917c1 100644 --- a/libtool.spec +++ b/libtool.spec @@ -8,11 +8,14 @@ Summary: The GNU Portable Library Tool URL: https://www.gnu.org/software/libtool/ Source0: https://alpha.gnu.org/gnu/libtool/%{name}-%{version}.tar.xz -Patch0: libtool-2.5.1-rpath.patch +Patch0: libtool-2.5.1-rpath.patch +%undefine _hardened_build +Patch1: libtool-2.4.7-hardening.patch +Patch2: libtool-2.4.6-disable-lto-link-order2.patch Requires: gcc(major),autoconf, automake, sed, tar, findutils -BuildRequires: texinfo autoconf automake help2man libtool-devel libtool +BuildRequires: texinfo autoconf automake help2man BuildRequires: libstdc++-devel gcc-gfortran gcc gcc-c++ %description @@ -64,7 +67,7 @@ export FFLAGS="$RPM_OPT_FLAGS -fPIE" export FCFLAGS="$RPM_OPT_FLAGS -fPIE" %endif -%configure --disable-static +%configure %make_build CUSTOM_LTDL_CFLAGS="%_hardening_cflags" CUSTOM_LTDL_LDFLAGS="%_hardening_ldflags" @@ -73,7 +76,7 @@ export FCFLAGS="$RPM_OPT_FLAGS -fPIE" %install %make_install -%delete_la +%delete_la_and_a rm -f %{buildroot}%{_infodir}/dir %files -- cgit v1.2.3