source: rtems/contrib/crossrpms/gdb/build.add @ 4cf3275

4.8
Last change on this file since 4cf3275 was f79feff, checked in by Ralf Corsepius <ralf.corsepius@…>, on 05/08/08 at 02:50:24

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

  • Property mode set to 100644
File size: 838 bytes
RevLine 
[59c3dfe]1%build
[bf33c69e]2%if "%{_prefix}" != "/usr"
3  export PATH="%{_bindir}:${PATH}"
4%endif
[59c3dfe]5  mkdir -p build
6  cd build
[90c85d5b]7%if "%{_build}" != "%{_host}"
8  CFLAGS_FOR_BUILD="-g -O2 -Wall" \
9%endif
[59c3dfe]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 \
[760e8186]18    --enable-sim \
[f79feff]19%if "%{gdb_version}" >= "6.7"
[aa26724]20    --with-system-readline \
[f79feff]21%endif
22%if "%{gdb_version}" >= "6.6"
[aa26724]23    --with-expat \
24%endif
[59c3dfe]25    --with-sysroot=%{_prefix}/@tool_target@/sys-root \
26    --prefix=%{_prefix} --bindir=%{_bindir} \
27    --includedir=%{_includedir} --libdir=%{_libdir} \
28    --mandir=%{_mandir} --infodir=%{_infodir}
29
[ae8600f]30  make %{?_smp_mflags} all
[e8a6236]31%if %build_infos
[59c3dfe]32  make info
[13501927]33%endif
[59c3dfe]34  cd ..
35
Note: See TracBrowser for help on using the repository browser.