source: rtems/contrib/crossrpms/gdb/build.add @ f79feff

4.8
Last change on this file since f79feff was f79feff, checked in by Ralf Corsepius <ralf.corsepius@…>, on May 8, 2008 at 2:50:24 AM

Enable --with-system-readline only for gdb >= 6.7

  • Property mode set to 100644
File size: 838 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.7"
20    --with-system-readline \
21%endif
22%if "%{gdb_version}" >= "6.6"
23    --with-expat \
24%endif
25    --with-sysroot=%{_prefix}/@tool_target@/sys-root \
26    --prefix=%{_prefix} --bindir=%{_bindir} \
27    --includedir=%{_includedir} --libdir=%{_libdir} \
28    --mandir=%{_mandir} --infodir=%{_infodir}
29
30  make %{?_smp_mflags} all
31%if %build_infos
32  make info
33%endif
34  cd ..
35
Note: See TracBrowser for help on using the repository browser.