Fix check-rpath which complains about /usr/lib64 in RPATH of some binaries
Use the recipe in here to fix the generated `libtool` script: https://fedoraproject.org/wiki/RPath_Packaging_Draft#Removing_Rpath Unfortunately, the configure script in numactl (both 2.0.11 and 2.0.12) does not recognize the --disable-rpath flag yet. Signed-off-by: Filipe Brandenburger <filbranden@gmail.com>
This commit is contained in:
parent
321a201444
commit
0673f33a6c
|
@ -52,6 +52,10 @@ cp %{SOURCE1} %{SOURCE2} build-aux/
|
|||
|
||||
%build
|
||||
%configure --prefix=/usr --libdir=%{_libdir}
|
||||
# Using recipe to fix rpaths, from here:
|
||||
# https://fedoraproject.org/wiki/RPath_Packaging_Draft#Removing_Rpath
|
||||
sed -i -e 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' \
|
||||
-e 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
|
||||
make clean
|
||||
make CFLAGS="$RPM_OPT_FLAGS -I."
|
||||
|
||||
|
@ -91,6 +95,9 @@ make DESTDIR=$RPM_BUILD_ROOT install
|
|||
%{_mandir}/man3/*.3*
|
||||
|
||||
%changelog
|
||||
* Wed Jul 25 2018 Filipe Brandenburger <filbranden@gmail.com>
|
||||
- Fix check-rpaths warning about including /usr/lib64 in RPATH of the binaries.
|
||||
|
||||
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.11-10
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
||||
|
||||
|
|
Loading…
Reference in New Issue