summaryrefslogtreecommitdiff
path: root/libtool.spec
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2024-09-26 04:04:44 +0000
committerCoprDistGit <infra@openeuler.org>2024-09-26 04:04:44 +0000
commit641419cf7f0929d6494b8235f78f6560f7a76140 (patch)
tree830630ec91d544370b96b11aa763601c22e3e9ac /libtool.spec
parent55dfd3ef86e71199d47a7bff68e2d902aa586999 (diff)
automatic import of libtool
Diffstat (limited to 'libtool.spec')
-rw-r--r--libtool.spec11
1 files changed, 7 insertions, 4 deletions
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