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

4.104.114.95
Last change on this file since 7ff4c5b was 7ff4c5b, checked in by Chris Johns <chrisj@…>, on 11/04/12 at 23:40:16

Clean up the configurations. Add internal/external autotools support.

  • Property mode set to 100644
File size: 1.6 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
9Name:      %{_target}-gdb-%{gdb_version}-%{release}
10Summary:   GDB v%{gdb_version} for target %{_target} on host %{_host}
11Version:   %{gdb_version}
12Release:   %{release}
13URL:       http://www.gnu.org/software/gdb/
14BuildRoot: %{_tmppath}/%{name}-root-%(%{__id_u} -n)
15
16#
17# Source
18#
19Source0: http://ftp.gnu.org/gnu/gdb/gdb-%{gdb_version}.tar.bz2
20VersionControl0 git clone git://sourceware.org/git/gdb.git
21
22#
23# Prepare the source code.
24#
25%prep
26%setup -q -c -T -n %{name}-%{version}
27cd gdb-%{gdb_version}
28%{?patch0:%patch0 -p1}
29cd ..
30
31%build
32  export PATH="%{_bindir}:${PATH}"
33  mkdir -p build
34  cd build
35%if "%{_build}" != "%{_host}"
36  CFLAGS_FOR_BUILD="-g -O2 -Wall" \
37%endif
38  CFLAGS="$SB_OPT_FLAGS" \
39  ../gdb-%{gdb_version}/configure \
40    --build=%{_build} --host=%{_host} \
41    --target=%{_target} \
42    --verbose --disable-nls \
43    --without-included-gettext \
44    --disable-win32-registry \
45    --disable-werror \
46    --enable-sim \
47    --with-expat \
48    --with-python \
49    --prefix=%{_prefix} --bindir=%{_bindir} \
50    --exec-prefix=%{_exec_prefix} \
51    --includedir=%{_includedir} --libdir=%{_libdir} \
52    --mandir=%{_mandir} --infodir=%{_infodir}
53
54  %{__make} %{?_smp_mflags} all
55  cd ..
56
57%install
58  export PATH="%{_bindir}:${PATH}"
59  rm -rf $SB_BUILD_ROOT
60
61  cd build
62  %{__make} DESTDIR=$SB_BUILD_ROOT install
63
64  # Dropped in FSF-binutils-2.9.5, but Cygwin still ships it.
65  rm -rf $SB_BUILD_ROOT%{_infodir}/configure.info*
66
67  rm -f $SB_BUILD_ROOT%{_infodir}/dir
68  touch $SB_BUILD_ROOT%{_infodir}/dir
69
70  cd ..
Note: See TracBrowser for help on using the repository browser.