diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2009-10-07 06:49:32 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2009-10-07 06:49:32 +0000 |
commit | 2b22160ffef4a1d515a86ba3369019fe84e389ca (patch) | |
tree | 6f2bf516ac9682a1ea5f18531df20535ded46afc /contrib | |
parent | 2009-10-06 Joel Sherrill <joel.sherrill@oarcorp.com> (diff) | |
download | rtems-2b22160ffef4a1d515a86ba3369019fe84e389ca.tar.bz2 |
Hack around gdb >= 7.0 trying to globally install syscall/*linux.xml.
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/crossrpms/gdb/install.add | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/contrib/crossrpms/gdb/install.add b/contrib/crossrpms/gdb/install.add index 8bcd43b784..1bdff46101 100644 --- a/contrib/crossrpms/gdb/install.add +++ b/contrib/crossrpms/gdb/install.add @@ -26,5 +26,19 @@ # host library, installed to a bogus directory 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 .. |