From 61dde35835789531d11da9626dba81ddd646e8ff Mon Sep 17 00:00:00 2001 From: Kedar Sovani Date: Sun, 30 Nov 2008 22:38:11 -0500 Subject: [PATCH] gdb: enable build on ARM This patch makes gdb build on ARM: - Don't require prelink on ARM. - Delete the ARM instruction simulator-related bits from the install root so as not to have rpm bomb out in the packaging stage due to unpackaged files. Signed-off-by: Lennert Buytenhek Signed-off-by: Kedar Sovani --- gdb.spec | 9 +++++++-- 1 files changed, 7 insertions(+), 2 deletions(-) diff --git a/gdb.spec b/gdb.spec index 9c682d2..cff0dee 100644 --- a/gdb.spec +++ b/gdb.spec @@ -13,7 +13,7 @@ Version: 6.8 # The release always contains a leading reserved number, start it at 1. # `upstream' is not a part of `name' to stay fully rpm dependencies compatible for the testing. -Release: 29%{?_with_upstream:.upstream}%{?dist} +Release: 29%{?_with_upstream:.upstream}%{?dist}.fa1 License: GPLv3+ Group: Development/Debuggers @@ -460,7 +460,7 @@ BuildRequires: libunwind-devel >= 0.99-0.1.frysk20070405cvs Requires: libunwind >= 0.99-0.1.frysk20070405cvs %else # Prelink is broken on sparcv9/sparc64 -%ifnarch sparcv9 sparc64 +%ifnarch sparcv9 sparc64 %{arm} BuildRequires: prelink %endif %endif @@ -844,6 +844,11 @@ ln -s gstack.1.gz $RPM_BUILD_ROOT%{_mandir}/man1/pstack.1.gz ln -s gstack $RPM_BUILD_ROOT%{_bindir}/pstack %endif # 0%{!?_with_upstream:1} +# We aren't interested in the simulator. +%ifarch %{arm} +rm -f $RPM_BUILD_ROOT%{_libdir}/lib*-sim.a +%endif + %clean rm -rf $RPM_BUILD_ROOT -- 1.5.3.3