forked from Imagelibrary/rtems
Hack around gdb >= 7.0 trying to globally install syscall/*linux.xml.
This commit is contained in:
@@ -26,5 +26,19 @@
|
|||||||
# host library, installed to a bogus directory
|
# host library, installed to a bogus directory
|
||||||
rm -f ${RPM_BUILD_ROOT}%{_libdir}/lib@tool_target@-sim.a
|
rm -f ${RPM_BUILD_ROOT}%{_libdir}/lib@tool_target@-sim.a
|
||||||
|
|
||||||
|
%if "%{gdb_version}" >= "7.0"
|
||||||
|
# Bug in gdb-7.0, bogusly installs linux-only files
|
||||||
|
somethinguseful=0
|
||||||
|
for f in ${RPM_BUILD_ROOT}%{_datadir}/gdb/syscalls/*.xml; do
|
||||||
|
case $f in
|
||||||
|
*linux.xml) rm -f $f;;
|
||||||
|
*.xml) somethinguseful=1;;
|
||||||
|
esac
|
||||||
|
done
|
||||||
|
if test $somethinguseful -eq 0; then
|
||||||
|
rm -rf "${RPM_BUILD_ROOT}%{_datadir}/gdb/syscalls"
|
||||||
|
fi
|
||||||
|
%endif
|
||||||
|
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user