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

4.115
Last change on this file since a917c19 was a917c19, checked in by Ralf Corsepius <ralf.corsepius@…>, on 08/31/11 at 09:21:53

Rework python.

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