summaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2009-10-07 06:49:32 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2009-10-07 06:49:32 +0000
commit2b22160ffef4a1d515a86ba3369019fe84e389ca (patch)
tree6f2bf516ac9682a1ea5f18531df20535ded46afc /contrib
parent2009-10-06 Joel Sherrill <joel.sherrill@oarcorp.com> (diff)
downloadrtems-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.add14
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 ..