source: rtems/contrib/crossrpms/gdb/build.add @ 90c85d5b

4.8
Last change on this file since 90c85d5b was 90c85d5b, checked in by Ralf Corsepius <ralf.corsepius@…>, on 04/29/08 at 11:38:26

Sync with CVS-HEAD.

  • Property mode set to 100644
File size: 801 bytes
Line 
1%build
2%if "%{_prefix}" != "/usr"
3  export PATH="%{_bindir}:${PATH}"
4%endif
5  mkdir -p build
6  cd build
7%if "%{_build}" != "%{_host}"
8  CFLAGS_FOR_BUILD="-g -O2 -Wall" \
9%endif
10  CFLAGS="$RPM_OPT_FLAGS" \
11  ../gdb-%{gdb_version}/configure \
12    --build=%_build --host=%_host \
13    --target=@tool_target@ \
14    --verbose --disable-nls \
15    --without-included-gettext \
16    --disable-win32-registry \
17    --disable-werror \
18    --enable-sim \
19%if "%{gdb_version}" >= "6.6"
20    --with-system-readline \
21    --with-expat \
22%endif
23    --with-sysroot=%{_prefix}/@tool_target@/sys-root \
24    --prefix=%{_prefix} --bindir=%{_bindir} \
25    --includedir=%{_includedir} --libdir=%{_libdir} \
26    --mandir=%{_mandir} --infodir=%{_infodir}
27
28  make %{?_smp_mflags} all
29%if %build_infos
30  make info
31%endif
32  cd ..
33
Note: See TracBrowser for help on using the repository browser.