From 06f6c510b892bcec4106182843ff9f64c52c40b5 Mon Sep 17 00:00:00 2001 From: zhangxianting Date: Wed, 8 Nov 2023 18:21:49 +0800 Subject: [PATCH] Enable fPIE and Remove rpath --- enchant.spec | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/enchant.spec b/enchant.spec index 376d965..356ac20 100644 --- a/enchant.spec +++ b/enchant.spec @@ -1,6 +1,6 @@ Name: enchant Version: 1.6.1 -Release: 2 +Release: 3 Epoch: 1 Summary: Generic spell checking library @@ -47,12 +47,18 @@ Applications need libraries integrated by using libenchant with voikko. %autosetup -n %{name}-%{version} -p1 %build +# export CFLAGS="%{optflags} -fPIE -pie" + %configure --disable-ispell --disable-hspell --disable-zemberek --enable-myspell \ - --with-myspell-dir=/usr/share/myspell + --with-myspell-dir=/usr/share/myspell CFLAGS="-fPIE -pie" make %{?_smp_mflags} %install make install DESTDIR=%{buildroot} +chrpath -d %{buildroot}%{_libdir}/%{name}/lib%{name}_myspell.so +chrpath -d %{buildroot}%{_bindir}/%{name}-lsmod +chrpath -d %{buildroot}%{_bindir}/%{name} + %delete_la %ldconfig_scriptlets @@ -83,6 +89,9 @@ make install DESTDIR=%{buildroot} %{_mandir}/man1/*.gz %changelog +* Wed Nov 02 2023 zhangxianting - 1:1.6.1-3 +- Enable fPIE and Remove rpath + * Sat Mar 21 2020 openEuler Buildteam - 1:1.6.1-2 - Type:NA - Id:NA -- Gitee