source: rtems-source-builder/source-builder/config/gdb-7-1.cfg @ b77019a

4.104.114.95
Last change on this file since b77019a was b77019a, checked in by Chris Johns <chrisj@…>, on 03/26/14 at 06:12:43

config: Build without zlib due to errors in psim.

  • Property mode set to 100644
File size: 2.8 KB
Line 
1#
2# GDB 7.xx Version 1.
3#
4# This configuration file configure's, make's and install's gdb.
5#
6
7%include %{_configdir}/checks.cfg
8
9#
10# Select Snapshot Macro Maps
11#
12%select gdb-snapshot
13%select expat-snapshot
14
15#
16# The description.
17#
18Name:      %{_target}-gdb-%{gdb_version}-%{release}
19Summary:   GDB v%{gdb_version} for target %{_target} on host %{_host}
20Version:   %{gdb_version}
21Release:   %{release}
22URL:       http://www.gnu.org/software/gdb/
23BuildRoot: %{_tmppath}/%{name}-root-%(%{__id_u} -n)
24
25#
26# Source
27#
28%ifn %{defined Source0}
29 Source0: http://ftp.gnu.org/gnu/gdb/gdb-%{gdb_version}.tar.bz2
30 VersionControl0 git clone git://sourceware.org/git/gdb.git
31%endif
32
33#
34# Disable Python on Cxc builds for now.
35#
36%if "%{_build}" != "%{_host}"
37  %define without_python
38%endif
39
40#
41#
42# Prepare the source code.
43#
44%prep
45  build_top=$(pwd)
46
47  source_dir_0="gdb-%{gdb_version}"
48  %setup -q -n gdb-%{gdb_version}
49  %{?patch0:%patch0 %{?patch0_opts:%{patch0_opts}}%{!?patch0_opts:-p1}}
50  %{?patch1:%patch1 %{?patch1_opts:%{patch1_opts}}%{!?patch1_opts:-p1}}
51  %{?patch2:%patch2 %{?patch2_opts:%{patch2_opts}}%{!?patch2_opts:-p1}}
52  %{?patch3:%patch3 %{?patch3_opts:%{patch3_opts}}%{!?patch3_opts:-p1}}
53  %{?patch4:%patch4 %{?patch4_opts:%{patch4_opts}}%{!?patch4_opts:-p1}}
54  %{?patch5:%patch5 %{?patch5_opts:%{patch5_opts}}%{!?patch5_opts:-p1}}
55  %{?patch6:%patch6 %{?patch6_opts:%{patch6_opts}}%{!?patch6_opts:-p1}}
56  %{?patch7:%patch7 %{?patch7_opts:%{patch7_opts}}%{!?patch7_opts:-p1}}
57  %{?patch8:%patch8 %{?patch8_opts:%{patch8_opts}}%{!?patch8_opts:-p1}}
58  %{?patch9:%patch9 %{?patch9_opts:%{patch9_opts}}%{!?patch9_opts:-p1}}
59
60  cd ${build_top}
61
62%build
63  build_top=$(pwd)
64
65  %{build_directory}
66
67  mkdir -p ${build_dir}
68  cd ${build_dir}
69
70  %{host_build_flags}
71
72  if test "%{_build}" != "%{_host}" ; then
73    GDB_LIBS_STATIC="-lexpat"
74  else
75    GDB_LIBS_STATIC="-lexpat"
76    GDB_LIBS="%{_forced_static}"
77  fi
78
79  LIBS_STATIC=${GDB_LIBS_STATIC} \
80  LIBS=${GDB_LIBS} \
81  ../${source_dir_0}/configure \
82    --build=%{_build} --host=%{_host} \
83    --target=%{_target} \
84    --verbose --disable-nls \
85    --without-included-gettext \
86    --disable-win32-registry \
87    --disable-werror \
88    --enable-sim \
89    --without-zlib \
90    --with-expat \
91    %{!?without_python:--with-python} \
92    --prefix=%{_prefix} --bindir=%{_bindir} \
93    --exec-prefix=%{_exec_prefix} \
94    --includedir=%{_includedir} --libdir=%{_libdir} \
95    --mandir=%{_mandir} --infodir=%{_infodir}
96
97  %{__make} %{?_smp_mflags} all
98
99  cd ${build_top}
100
101%install
102  build_top=$(pwd)
103
104  %{__rmdir} $SB_BUILD_ROOT
105
106  cd ${build_dir}
107  %{__make} DESTDIR=$SB_BUILD_ROOT install
108
109  # Dropped in FSF-binutils-2.9.5, but Cygwin still ships it.
110  %{__rmdir} $SB_BUILD_ROOT%{_infodir}/configure.info*
111
112  %{__rmfile} $SB_BUILD_ROOT%{_infodir}/dir
113  touch $SB_BUILD_ROOT%{_infodir}/dir
114
115  cd ${build_top}
Note: See TracBrowser for help on using the repository browser.