remove rpath

This commit is contained in:
shixuantong 2021-09-04 17:56:15 +08:00
parent 2021077e48
commit ed65f63de1

View File

@ -1,10 +1,10 @@
%define disable_rpath \
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' */libtool \
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' */libtool
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool \
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
Name: zziplib
Version: 0.13.71
Release: 2
Release: 3
Summary: Lightweight library for zip compression
License: LGPLv2+ or MPLv1.1
URL: http://zziplib.sourceforge.net
@ -61,6 +61,8 @@ sed -i -e 's:docs ::g' Makefile.am
%build
%configure --disable-static --enable-sdl --enable-frame-pointer --enable-builddir=_builddir
# remove rpath
%disable_rpath
%make_build
%install
@ -89,6 +91,9 @@ find %{buildroot} -type f -name "*.la" -delete -print
%{_mandir}/man3/*
%changelog
* Sat Sep 04 2021 shixuantong <shixuantong@huawei.com> - 0.13.71-3
- remove rpath
* Fri Jun 25 2021 shixuantong <shixuantong@huawei.com> - 0.13.71-2
- fix CVE-2020-18442