diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2008-03-25 05:50:32 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2008-03-25 05:50:32 +0000 |
commit | 1f129d87d5671cf9e4907c060b8f935fd5cfb3b2 (patch) | |
tree | ce04cbc19a94af54caa20c66c429fe680d03be1e | |
parent | gdb-6.7.1-rtems4.9-20080324.diff, gdb-6.7.1-gdb-6.7.90-config.diff. (diff) | |
download | rtems-1f129d87d5671cf9e4907c060b8f935fd5cfb3b2.tar.bz2 |
Regenerate.
11 files changed, 173 insertions, 20 deletions
diff --git a/contrib/crossrpms/rtems4.9/arm/rtems-4.9-arm-rtems4.9-gdb.spec b/contrib/crossrpms/rtems4.9/arm/rtems-4.9-arm-rtems4.9-gdb.spec index 0db7fb6747..d35b3fe075 100644 --- a/contrib/crossrpms/rtems4.9/arm/rtems-4.9-arm-rtems4.9-gdb.spec +++ b/contrib/crossrpms/rtems4.9/arm/rtems-4.9-arm-rtems4.9-gdb.spec @@ -13,6 +13,12 @@ %define _exeext %{nil} %endif +%ifos cygwin cygwin32 +%define optflags -O3 -pipe -march=i486 -funroll-loops +%define _libdir %{_exec_prefix}/lib +%define debug_package %{nil} +%endif + %define gdb_version 6.7.1 %define gdb_rpmvers %{expand:%(echo 6.7.1 | tr - _)} @@ -20,11 +26,15 @@ Name: rtems-4.9-arm-rtems4.9-gdb Summary: Gdb for target arm-rtems4.9 Group: Development/Tools Version: %{gdb_rpmvers} -Release: 5%{?dist} +Release: 6%{?dist} License: GPL/LGPL URL: http://sources.redhat.com/gdb BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +%if "%{_build}" != "%{_host}" +BuildRequires: rtems-4.9-%{_host}-gcc +%endif + %if "%{gdb_version}" >= "6.6" # suse %if "%{?suse}" @@ -52,7 +62,8 @@ Requires: rtems-4.9-gdb-common Source0: ftp://ftp.gnu.org/pub/gnu/gdb/gdb-%{gdb_version}.tar.bz2 %{?_without_sources:NoSource: 0} %if "%{gdb_version}" == "6.7.1" -Patch0: gdb-6.7.1-rtems4.9-20071216.diff +Patch0: gdb-6.7.1-rtems4.9-20080324.diff +Patch1: gdb-6.7.1-gdb-6.7.90-config.diff %endif %description @@ -63,9 +74,11 @@ GDB for target arm-rtems4.9 %setup -q -D -T -n %{name}-%{version} -a0 cd gdb-%{gdb_version} %{?PATCH0:%patch0 -p1} +%{?PATCH1:%patch1 -p1} cd .. %build + export PATH="%{_bindir}:${PATH}" mkdir -p build cd build CFLAGS="$RPM_OPT_FLAGS" \ @@ -90,6 +103,7 @@ cd .. cd .. %install + export PATH="%{_bindir}:${PATH}" rm -rf $RPM_BUILD_ROOT cd build diff --git a/contrib/crossrpms/rtems4.9/avr/rtems-4.9-avr-rtems4.9-gdb.spec b/contrib/crossrpms/rtems4.9/avr/rtems-4.9-avr-rtems4.9-gdb.spec index a2189ad600..79d828c4b8 100644 --- a/contrib/crossrpms/rtems4.9/avr/rtems-4.9-avr-rtems4.9-gdb.spec +++ b/contrib/crossrpms/rtems4.9/avr/rtems-4.9-avr-rtems4.9-gdb.spec @@ -13,6 +13,12 @@ %define _exeext %{nil} %endif +%ifos cygwin cygwin32 +%define optflags -O3 -pipe -march=i486 -funroll-loops +%define _libdir %{_exec_prefix}/lib +%define debug_package %{nil} +%endif + %define gdb_version 6.7.1 %define gdb_rpmvers %{expand:%(echo 6.7.1 | tr - _)} @@ -20,11 +26,15 @@ Name: rtems-4.9-avr-rtems4.9-gdb Summary: Gdb for target avr-rtems4.9 Group: Development/Tools Version: %{gdb_rpmvers} -Release: 5%{?dist} +Release: 6%{?dist} License: GPL/LGPL URL: http://sources.redhat.com/gdb BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +%if "%{_build}" != "%{_host}" +BuildRequires: rtems-4.9-%{_host}-gcc +%endif + %if "%{gdb_version}" >= "6.6" # suse %if "%{?suse}" @@ -52,7 +62,8 @@ Requires: rtems-4.9-gdb-common Source0: ftp://ftp.gnu.org/pub/gnu/gdb/gdb-%{gdb_version}.tar.bz2 %{?_without_sources:NoSource: 0} %if "%{gdb_version}" == "6.7.1" -Patch0: gdb-6.7.1-rtems4.9-20071216.diff +Patch0: gdb-6.7.1-rtems4.9-20080324.diff +Patch1: gdb-6.7.1-gdb-6.7.90-config.diff %endif %description @@ -63,9 +74,11 @@ GDB for target avr-rtems4.9 %setup -q -D -T -n %{name}-%{version} -a0 cd gdb-%{gdb_version} %{?PATCH0:%patch0 -p1} +%{?PATCH1:%patch1 -p1} cd .. %build + export PATH="%{_bindir}:${PATH}" mkdir -p build cd build CFLAGS="$RPM_OPT_FLAGS" \ @@ -90,6 +103,7 @@ cd .. cd .. %install + export PATH="%{_bindir}:${PATH}" rm -rf $RPM_BUILD_ROOT cd build diff --git a/contrib/crossrpms/rtems4.9/bfin/rtems-4.9-bfin-rtems4.9-gdb.spec b/contrib/crossrpms/rtems4.9/bfin/rtems-4.9-bfin-rtems4.9-gdb.spec index 7afad307b9..57d781f231 100644 --- a/contrib/crossrpms/rtems4.9/bfin/rtems-4.9-bfin-rtems4.9-gdb.spec +++ b/contrib/crossrpms/rtems4.9/bfin/rtems-4.9-bfin-rtems4.9-gdb.spec @@ -13,6 +13,12 @@ %define _exeext %{nil} %endif +%ifos cygwin cygwin32 +%define optflags -O3 -pipe -march=i486 -funroll-loops +%define _libdir %{_exec_prefix}/lib +%define debug_package %{nil} +%endif + %define gdb_version 6.5 %define gdb_rpmvers %{expand:%(echo 6.5 | tr - _)} @@ -25,6 +31,10 @@ License: GPL/LGPL URL: http://sources.redhat.com/gdb BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +%if "%{_build}" != "%{_host}" +BuildRequires: rtems-4.9-%{_host}-gcc +%endif + %if "%{gdb_version}" >= "6.6" # suse %if "%{?suse}" @@ -61,9 +71,11 @@ GDB for target bfin-rtems4.9 %setup -q -D -T -n %{name}-%{version} -a0 cd gdb-%{gdb_version} %{?PATCH0:%patch0 -p1} +%{?PATCH1:%patch1 -p1} cd .. %build + export PATH="%{_bindir}:${PATH}" mkdir -p build cd build CFLAGS="$RPM_OPT_FLAGS" \ @@ -88,6 +100,7 @@ cd .. cd .. %install + export PATH="%{_bindir}:${PATH}" rm -rf $RPM_BUILD_ROOT cd build diff --git a/contrib/crossrpms/rtems4.9/h8300/rtems-4.9-h8300-rtems4.9-gdb.spec b/contrib/crossrpms/rtems4.9/h8300/rtems-4.9-h8300-rtems4.9-gdb.spec index cb33d61f0e..cb911cc102 100644 --- a/contrib/crossrpms/rtems4.9/h8300/rtems-4.9-h8300-rtems4.9-gdb.spec +++ b/contrib/crossrpms/rtems4.9/h8300/rtems-4.9-h8300-rtems4.9-gdb.spec @@ -13,6 +13,12 @@ %define _exeext %{nil} %endif +%ifos cygwin cygwin32 +%define optflags -O3 -pipe -march=i486 -funroll-loops +%define _libdir %{_exec_prefix}/lib +%define debug_package %{nil} +%endif + %define gdb_version 6.7.1 %define gdb_rpmvers %{expand:%(echo 6.7.1 | tr - _)} @@ -20,11 +26,15 @@ Name: rtems-4.9-h8300-rtems4.9-gdb Summary: Gdb for target h8300-rtems4.9 Group: Development/Tools Version: %{gdb_rpmvers} -Release: 5%{?dist} +Release: 6%{?dist} License: GPL/LGPL URL: http://sources.redhat.com/gdb BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +%if "%{_build}" != "%{_host}" +BuildRequires: rtems-4.9-%{_host}-gcc +%endif + %if "%{gdb_version}" >= "6.6" # suse %if "%{?suse}" @@ -52,7 +62,8 @@ Requires: rtems-4.9-gdb-common Source0: ftp://ftp.gnu.org/pub/gnu/gdb/gdb-%{gdb_version}.tar.bz2 %{?_without_sources:NoSource: 0} %if "%{gdb_version}" == "6.7.1" -Patch0: gdb-6.7.1-rtems4.9-20071216.diff +Patch0: gdb-6.7.1-rtems4.9-20080324.diff +Patch1: gdb-6.7.1-gdb-6.7.90-config.diff %endif %description @@ -63,9 +74,11 @@ GDB for target h8300-rtems4.9 %setup -q -D -T -n %{name}-%{version} -a0 cd gdb-%{gdb_version} %{?PATCH0:%patch0 -p1} +%{?PATCH1:%patch1 -p1} cd .. %build + export PATH="%{_bindir}:${PATH}" mkdir -p build cd build CFLAGS="$RPM_OPT_FLAGS" \ @@ -90,6 +103,7 @@ cd .. cd .. %install + export PATH="%{_bindir}:${PATH}" rm -rf $RPM_BUILD_ROOT cd build diff --git a/contrib/crossrpms/rtems4.9/i386/rtems-4.9-i386-rtems4.9-gdb.spec b/contrib/crossrpms/rtems4.9/i386/rtems-4.9-i386-rtems4.9-gdb.spec index 9afde969e7..b193459f6a 100644 --- a/contrib/crossrpms/rtems4.9/i386/rtems-4.9-i386-rtems4.9-gdb.spec +++ b/contrib/crossrpms/rtems4.9/i386/rtems-4.9-i386-rtems4.9-gdb.spec @@ -13,6 +13,12 @@ %define _exeext %{nil} %endif +%ifos cygwin cygwin32 +%define optflags -O3 -pipe -march=i486 -funroll-loops +%define _libdir %{_exec_prefix}/lib +%define debug_package %{nil} +%endif + %define gdb_version 6.7.1 %define gdb_rpmvers %{expand:%(echo 6.7.1 | tr - _)} @@ -20,11 +26,15 @@ Name: rtems-4.9-i386-rtems4.9-gdb Summary: Gdb for target i386-rtems4.9 Group: Development/Tools Version: %{gdb_rpmvers} -Release: 5%{?dist} +Release: 6%{?dist} License: GPL/LGPL URL: http://sources.redhat.com/gdb BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +%if "%{_build}" != "%{_host}" +BuildRequires: rtems-4.9-%{_host}-gcc +%endif + %if "%{gdb_version}" >= "6.6" # suse %if "%{?suse}" @@ -52,7 +62,8 @@ Requires: rtems-4.9-gdb-common Source0: ftp://ftp.gnu.org/pub/gnu/gdb/gdb-%{gdb_version}.tar.bz2 %{?_without_sources:NoSource: 0} %if "%{gdb_version}" == "6.7.1" -Patch0: gdb-6.7.1-rtems4.9-20071216.diff +Patch0: gdb-6.7.1-rtems4.9-20080324.diff +Patch1: gdb-6.7.1-gdb-6.7.90-config.diff %endif %description @@ -63,9 +74,11 @@ GDB for target i386-rtems4.9 %setup -q -D -T -n %{name}-%{version} -a0 cd gdb-%{gdb_version} %{?PATCH0:%patch0 -p1} +%{?PATCH1:%patch1 -p1} cd .. %build + export PATH="%{_bindir}:${PATH}" mkdir -p build cd build CFLAGS="$RPM_OPT_FLAGS" \ @@ -90,6 +103,7 @@ cd .. cd .. %install + export PATH="%{_bindir}:${PATH}" rm -rf $RPM_BUILD_ROOT cd build diff --git a/contrib/crossrpms/rtems4.9/m68k/rtems-4.9-m68k-rtems4.9-gdb.spec b/contrib/crossrpms/rtems4.9/m68k/rtems-4.9-m68k-rtems4.9-gdb.spec index 97934311bc..759fea57a5 100644 --- a/contrib/crossrpms/rtems4.9/m68k/rtems-4.9-m68k-rtems4.9-gdb.spec +++ b/contrib/crossrpms/rtems4.9/m68k/rtems-4.9-m68k-rtems4.9-gdb.spec @@ -13,6 +13,12 @@ %define _exeext %{nil} %endif +%ifos cygwin cygwin32 +%define optflags -O3 -pipe -march=i486 -funroll-loops +%define _libdir %{_exec_prefix}/lib +%define debug_package %{nil} +%endif + %define gdb_version 6.7.1 %define gdb_rpmvers %{expand:%(echo 6.7.1 | tr - _)} @@ -20,11 +26,15 @@ Name: rtems-4.9-m68k-rtems4.9-gdb Summary: Gdb for target m68k-rtems4.9 Group: Development/Tools Version: %{gdb_rpmvers} -Release: 5%{?dist} +Release: 6%{?dist} License: GPL/LGPL URL: http://sources.redhat.com/gdb BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +%if "%{_build}" != "%{_host}" +BuildRequires: rtems-4.9-%{_host}-gcc +%endif + %if "%{gdb_version}" >= "6.6" # suse %if "%{?suse}" @@ -52,7 +62,8 @@ Requires: rtems-4.9-gdb-common Source0: ftp://ftp.gnu.org/pub/gnu/gdb/gdb-%{gdb_version}.tar.bz2 %{?_without_sources:NoSource: 0} %if "%{gdb_version}" == "6.7.1" -Patch0: gdb-6.7.1-rtems4.9-20071216.diff +Patch0: gdb-6.7.1-rtems4.9-20080324.diff +Patch1: gdb-6.7.1-gdb-6.7.90-config.diff %endif %description @@ -63,9 +74,11 @@ GDB for target m68k-rtems4.9 %setup -q -D -T -n %{name}-%{version} -a0 cd gdb-%{gdb_version} %{?PATCH0:%patch0 -p1} +%{?PATCH1:%patch1 -p1} cd .. %build + export PATH="%{_bindir}:${PATH}" mkdir -p build cd build CFLAGS="$RPM_OPT_FLAGS" \ @@ -90,6 +103,7 @@ cd .. cd .. %install + export PATH="%{_bindir}:${PATH}" rm -rf $RPM_BUILD_ROOT cd build diff --git a/contrib/crossrpms/rtems4.9/mips/rtems-4.9-mips-rtems4.9-gdb.spec b/contrib/crossrpms/rtems4.9/mips/rtems-4.9-mips-rtems4.9-gdb.spec index 84c83c0b12..f10b29e757 100644 --- a/contrib/crossrpms/rtems4.9/mips/rtems-4.9-mips-rtems4.9-gdb.spec +++ b/contrib/crossrpms/rtems4.9/mips/rtems-4.9-mips-rtems4.9-gdb.spec @@ -13,6 +13,12 @@ %define _exeext %{nil} %endif +%ifos cygwin cygwin32 +%define optflags -O3 -pipe -march=i486 -funroll-loops +%define _libdir %{_exec_prefix}/lib +%define debug_package %{nil} +%endif + %define gdb_version 6.7.1 %define gdb_rpmvers %{expand:%(echo 6.7.1 | tr - _)} @@ -20,11 +26,15 @@ Name: rtems-4.9-mips-rtems4.9-gdb Summary: Gdb for target mips-rtems4.9 Group: Development/Tools Version: %{gdb_rpmvers} -Release: 5%{?dist} +Release: 6%{?dist} License: GPL/LGPL URL: http://sources.redhat.com/gdb BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +%if "%{_build}" != "%{_host}" +BuildRequires: rtems-4.9-%{_host}-gcc +%endif + %if "%{gdb_version}" >= "6.6" # suse %if "%{?suse}" @@ -52,7 +62,8 @@ Requires: rtems-4.9-gdb-common Source0: ftp://ftp.gnu.org/pub/gnu/gdb/gdb-%{gdb_version}.tar.bz2 %{?_without_sources:NoSource: 0} %if "%{gdb_version}" == "6.7.1" -Patch0: gdb-6.7.1-rtems4.9-20071216.diff +Patch0: gdb-6.7.1-rtems4.9-20080324.diff +Patch1: gdb-6.7.1-gdb-6.7.90-config.diff %endif %description @@ -63,9 +74,11 @@ GDB for target mips-rtems4.9 %setup -q -D -T -n %{name}-%{version} -a0 cd gdb-%{gdb_version} %{?PATCH0:%patch0 -p1} +%{?PATCH1:%patch1 -p1} cd .. %build + export PATH="%{_bindir}:${PATH}" mkdir -p build cd build CFLAGS="$RPM_OPT_FLAGS" \ @@ -90,6 +103,7 @@ cd .. cd .. %install + export PATH="%{_bindir}:${PATH}" rm -rf $RPM_BUILD_ROOT cd build diff --git a/contrib/crossrpms/rtems4.9/mipstx39/rtems-4.9-mipstx39-rtems4.9-gdb.spec b/contrib/crossrpms/rtems4.9/mipstx39/rtems-4.9-mipstx39-rtems4.9-gdb.spec index c72f6a9caa..19c63d0bab 100644 --- a/contrib/crossrpms/rtems4.9/mipstx39/rtems-4.9-mipstx39-rtems4.9-gdb.spec +++ b/contrib/crossrpms/rtems4.9/mipstx39/rtems-4.9-mipstx39-rtems4.9-gdb.spec @@ -13,6 +13,12 @@ %define _exeext %{nil} %endif +%ifos cygwin cygwin32 +%define optflags -O3 -pipe -march=i486 -funroll-loops +%define _libdir %{_exec_prefix}/lib +%define debug_package %{nil} +%endif + %define gdb_version 6.7.1 %define gdb_rpmvers %{expand:%(echo 6.7.1 | tr - _)} @@ -20,11 +26,15 @@ Name: rtems-4.9-mipstx39-rtems4.9-gdb Summary: Gdb for target mipstx39-rtems4.9 Group: Development/Tools Version: %{gdb_rpmvers} -Release: 5%{?dist} +Release: 6%{?dist} License: GPL/LGPL URL: http://sources.redhat.com/gdb BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +%if "%{_build}" != "%{_host}" +BuildRequires: rtems-4.9-%{_host}-gcc +%endif + %if "%{gdb_version}" >= "6.6" # suse %if "%{?suse}" @@ -52,7 +62,8 @@ Requires: rtems-4.9-gdb-common Source0: ftp://ftp.gnu.org/pub/gnu/gdb/gdb-%{gdb_version}.tar.bz2 %{?_without_sources:NoSource: 0} %if "%{gdb_version}" == "6.7.1" -Patch0: gdb-6.7.1-rtems4.9-20071216.diff +Patch0: gdb-6.7.1-rtems4.9-20080324.diff +Patch1: gdb-6.7.1-gdb-6.7.90-config.diff %endif %description @@ -63,9 +74,11 @@ GDB for target mipstx39-rtems4.9 %setup -q -D -T -n %{name}-%{version} -a0 cd gdb-%{gdb_version} %{?PATCH0:%patch0 -p1} +%{?PATCH1:%patch1 -p1} cd .. %build + export PATH="%{_bindir}:${PATH}" mkdir -p build cd build CFLAGS="$RPM_OPT_FLAGS" \ @@ -90,6 +103,7 @@ cd .. cd .. %install + export PATH="%{_bindir}:${PATH}" rm -rf $RPM_BUILD_ROOT cd build diff --git a/contrib/crossrpms/rtems4.9/powerpc/rtems-4.9-powerpc-rtems4.9-gdb.spec b/contrib/crossrpms/rtems4.9/powerpc/rtems-4.9-powerpc-rtems4.9-gdb.spec index c979eea625..e61361a076 100644 --- a/contrib/crossrpms/rtems4.9/powerpc/rtems-4.9-powerpc-rtems4.9-gdb.spec +++ b/contrib/crossrpms/rtems4.9/powerpc/rtems-4.9-powerpc-rtems4.9-gdb.spec @@ -13,6 +13,12 @@ %define _exeext %{nil} %endif +%ifos cygwin cygwin32 +%define optflags -O3 -pipe -march=i486 -funroll-loops +%define _libdir %{_exec_prefix}/lib +%define debug_package %{nil} +%endif + %define gdb_version 6.7.1 %define gdb_rpmvers %{expand:%(echo 6.7.1 | tr - _)} @@ -20,11 +26,15 @@ Name: rtems-4.9-powerpc-rtems4.9-gdb Summary: Gdb for target powerpc-rtems4.9 Group: Development/Tools Version: %{gdb_rpmvers} -Release: 5%{?dist} +Release: 6%{?dist} License: GPL/LGPL URL: http://sources.redhat.com/gdb BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +%if "%{_build}" != "%{_host}" +BuildRequires: rtems-4.9-%{_host}-gcc +%endif + %if "%{gdb_version}" >= "6.6" # suse %if "%{?suse}" @@ -52,7 +62,8 @@ Requires: rtems-4.9-gdb-common Source0: ftp://ftp.gnu.org/pub/gnu/gdb/gdb-%{gdb_version}.tar.bz2 %{?_without_sources:NoSource: 0} %if "%{gdb_version}" == "6.7.1" -Patch0: gdb-6.7.1-rtems4.9-20071216.diff +Patch0: gdb-6.7.1-rtems4.9-20080324.diff +Patch1: gdb-6.7.1-gdb-6.7.90-config.diff %endif %description @@ -63,9 +74,11 @@ GDB for target powerpc-rtems4.9 %setup -q -D -T -n %{name}-%{version} -a0 cd gdb-%{gdb_version} %{?PATCH0:%patch0 -p1} +%{?PATCH1:%patch1 -p1} cd .. %build + export PATH="%{_bindir}:${PATH}" mkdir -p build cd build CFLAGS="$RPM_OPT_FLAGS" \ @@ -90,6 +103,7 @@ cd .. cd .. %install + export PATH="%{_bindir}:${PATH}" rm -rf $RPM_BUILD_ROOT cd build diff --git a/contrib/crossrpms/rtems4.9/sh/rtems-4.9-sh-rtems4.9-gdb.spec b/contrib/crossrpms/rtems4.9/sh/rtems-4.9-sh-rtems4.9-gdb.spec index 3d4219d6c2..aa7ecebee5 100644 --- a/contrib/crossrpms/rtems4.9/sh/rtems-4.9-sh-rtems4.9-gdb.spec +++ b/contrib/crossrpms/rtems4.9/sh/rtems-4.9-sh-rtems4.9-gdb.spec @@ -13,6 +13,12 @@ %define _exeext %{nil} %endif +%ifos cygwin cygwin32 +%define optflags -O3 -pipe -march=i486 -funroll-loops +%define _libdir %{_exec_prefix}/lib +%define debug_package %{nil} +%endif + %define gdb_version 6.7.1 %define gdb_rpmvers %{expand:%(echo 6.7.1 | tr - _)} @@ -20,11 +26,15 @@ Name: rtems-4.9-sh-rtems4.9-gdb Summary: Gdb for target sh-rtems4.9 Group: Development/Tools Version: %{gdb_rpmvers} -Release: 5%{?dist} +Release: 6%{?dist} License: GPL/LGPL URL: http://sources.redhat.com/gdb BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +%if "%{_build}" != "%{_host}" +BuildRequires: rtems-4.9-%{_host}-gcc +%endif + %if "%{gdb_version}" >= "6.6" # suse %if "%{?suse}" @@ -52,7 +62,8 @@ Requires: rtems-4.9-gdb-common Source0: ftp://ftp.gnu.org/pub/gnu/gdb/gdb-%{gdb_version}.tar.bz2 %{?_without_sources:NoSource: 0} %if "%{gdb_version}" == "6.7.1" -Patch0: gdb-6.7.1-rtems4.9-20071216.diff +Patch0: gdb-6.7.1-rtems4.9-20080324.diff +Patch1: gdb-6.7.1-gdb-6.7.90-config.diff %endif %description @@ -63,9 +74,11 @@ GDB for target sh-rtems4.9 %setup -q -D -T -n %{name}-%{version} -a0 cd gdb-%{gdb_version} %{?PATCH0:%patch0 -p1} +%{?PATCH1:%patch1 -p1} cd .. %build + export PATH="%{_bindir}:${PATH}" mkdir -p build cd build CFLAGS="$RPM_OPT_FLAGS" \ @@ -90,6 +103,7 @@ cd .. cd .. %install + export PATH="%{_bindir}:${PATH}" rm -rf $RPM_BUILD_ROOT cd build diff --git a/contrib/crossrpms/rtems4.9/sparc/rtems-4.9-sparc-rtems4.9-gdb.spec b/contrib/crossrpms/rtems4.9/sparc/rtems-4.9-sparc-rtems4.9-gdb.spec index af4f5c4d76..b1b40e66f9 100644 --- a/contrib/crossrpms/rtems4.9/sparc/rtems-4.9-sparc-rtems4.9-gdb.spec +++ b/contrib/crossrpms/rtems4.9/sparc/rtems-4.9-sparc-rtems4.9-gdb.spec @@ -13,6 +13,12 @@ %define _exeext %{nil} %endif +%ifos cygwin cygwin32 +%define optflags -O3 -pipe -march=i486 -funroll-loops +%define _libdir %{_exec_prefix}/lib +%define debug_package %{nil} +%endif + %define gdb_version 6.7.1 %define gdb_rpmvers %{expand:%(echo 6.7.1 | tr - _)} @@ -20,11 +26,15 @@ Name: rtems-4.9-sparc-rtems4.9-gdb Summary: Gdb for target sparc-rtems4.9 Group: Development/Tools Version: %{gdb_rpmvers} -Release: 5%{?dist} +Release: 6%{?dist} License: GPL/LGPL URL: http://sources.redhat.com/gdb BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +%if "%{_build}" != "%{_host}" +BuildRequires: rtems-4.9-%{_host}-gcc +%endif + %if "%{gdb_version}" >= "6.6" # suse %if "%{?suse}" @@ -52,7 +62,8 @@ Requires: rtems-4.9-gdb-common Source0: ftp://ftp.gnu.org/pub/gnu/gdb/gdb-%{gdb_version}.tar.bz2 %{?_without_sources:NoSource: 0} %if "%{gdb_version}" == "6.7.1" -Patch0: gdb-6.7.1-rtems4.9-20071216.diff +Patch0: gdb-6.7.1-rtems4.9-20080324.diff +Patch1: gdb-6.7.1-gdb-6.7.90-config.diff %endif %description @@ -63,9 +74,11 @@ GDB for target sparc-rtems4.9 %setup -q -D -T -n %{name}-%{version} -a0 cd gdb-%{gdb_version} %{?PATCH0:%patch0 -p1} +%{?PATCH1:%patch1 -p1} cd .. %build + export PATH="%{_bindir}:${PATH}" mkdir -p build cd build CFLAGS="$RPM_OPT_FLAGS" \ @@ -90,6 +103,7 @@ cd .. cd .. %install + export PATH="%{_bindir}:${PATH}" rm -rf $RPM_BUILD_ROOT cd build |