source: rtems/contrib/crossrpms/binutils/build.add @ a181ab0

4.9
Last change on this file since a181ab0 was 5589eac0, checked in by Ralf Corsepius <ralf.corsepius@…>, on 03/18/08 at 06:12:40

Add %{_bindir} to PATH to cater CdnX-builds.
Set CFLAGS_FOR_BUILD.

  • Property mode set to 100644
File size: 911 bytes
RevLine 
[14653c86]1%build
[5589eac0]2%if "%{_prefix}" != "/usr"
3  export PATH="%{_bindir}:${PATH}"
4%endif
[ee4740b]5%if "@tool_target@" == "i686-pc-cygwin"
6# The cygwin sources are leaking memory
7  RPM_OPT_FLAGS="$(echo "$RPM_OPT_FLAGS"|sed -e 's; -Wp,-D_FORTIFY_SOURCE=2;;')"
8%endif
[14653c86]9  mkdir -p build
10  cd build
[5589eac0]11%if "%{_build}" != "%{_host}"
12  CFLAGS_FOR_BUILD="-g -O2 -Wall" \
13%endif
[14653c86]14  CFLAGS="$RPM_OPT_FLAGS" \
[8d182ca]15  ../binutils-%{binutils_pkgvers}/configure \
[14653c86]16    --build=%_build --host=%_host \
17    --target=@tool_target@ \
18    --verbose --disable-nls \
19    --without-included-gettext \
20    --disable-win32-registry \
21    --disable-werror \
[87f443cc]22    --with-sysroot=%{_prefix}/@tool_target@/sys-root \
[14653c86]23    --prefix=%{_prefix} --bindir=%{_bindir} \
[1f88fa0]24    --exec-prefix=%{_exec_prefix} \
[14653c86]25    --includedir=%{_includedir} --libdir=%{_libdir} \
26    --mandir=%{_mandir} --infodir=%{_infodir}
27
[dcb8530]28  make %{?_smp_mflags} all
[e8a6236]29%if %build_infos
[14653c86]30  make info
31%endif
32  cd ..
33
Note: See TracBrowser for help on using the repository browser.