4.104.115
Last change
on this file since d03b469 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
|
Line | |
---|
1 | %build |
---|
2 | %if "%{_prefix}" != "/usr" |
---|
3 | export PATH="%{_bindir}:${PATH}" |
---|
4 | %endif |
---|
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 |
---|
9 | mkdir -p build |
---|
10 | cd build |
---|
11 | %if "%{_build}" != "%{_host}" |
---|
12 | CFLAGS_FOR_BUILD="-g -O2 -Wall" \ |
---|
13 | %endif |
---|
14 | CFLAGS="$RPM_OPT_FLAGS" \ |
---|
15 | ../binutils-%{binutils_pkgvers}/configure \ |
---|
16 | --build=%_build --host=%_host \ |
---|
17 | --target=@tool_target@ \ |
---|
18 | --verbose --disable-nls \ |
---|
19 | --without-included-gettext \ |
---|
20 | --disable-win32-registry \ |
---|
21 | --disable-werror \ |
---|
22 | --with-sysroot=%{_prefix}/@tool_target@/sys-root \ |
---|
23 | --prefix=%{_prefix} --bindir=%{_bindir} \ |
---|
24 | --exec-prefix=%{_exec_prefix} \ |
---|
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.