source: rtems/contrib/crossrpms/gcc/build.add @ 9b31b29

4.104.114.84.9
Last change on this file since 9b31b29 was 9b31b29, checked in by Ralf Corsepius <ralf.corsepius@…>, on Jun 18, 2007 at 7:02:32 AM

--disable-libstdcxx-pch

  • Property mode set to 100644
File size: 1.5 KB
Line 
1%build
2  mkdir -p build
3
4  cd build
5
6  languages="c"
7%if %build_cxx
8  languages="$languages,c++"
9%endif
10%if %build_g77
11  languages="$languages,g77"
12%endif
13%if %build_f95
14  languages="$languages,f95"
15%endif
16%if %build_gcj
17  languages="$languages,java"
18%endif
19%if %build_objc
20  languages="$languages,objc"
21%endif
22%if %build_gnat
23  languages="$languages,ada"
24%endif
25%if %build_libgcj
26  optargs="--enable-libgcj"
27%endif
28%if "%{_prefix}" != "/usr"
29  export PATH="%{_bindir}:${PATH}"
30%endif
31
32  CC="%{__cc} ${RPM_OPT_FLAGS}" \
33  ../gcc-%{gcc_pkgvers}/configure \
34    --prefix=%{_prefix} \
35    --bindir=%{_bindir} \
36    --exec_prefix=%{_exec_prefix} \
37    --includedir=%{_includedir} \
38    --libdir=%{_libdir} \
39    --libexecdir=%{_libexecdir} \
40    --mandir=%{_mandir} \
41    --infodir=%{_infodir} \
42    --datadir=%{_datadir} \
43    --build=%_build --host=%_host \
44    --target=@tool_target@ \
45    --disable-libstdcxx-pch \
46    --with-gnu-as --with-gnu-ld --verbose \
47    --with-newlib \
48    --with-system-zlib \
49    --disable-nls --without-included-gettext \
50    --disable-win32-registry \
51    --enable-version-specific-runtime-libs \
52    --enable-threads \
53    --with-sysroot=%{_exec_prefix}/@tool_target@/sys-root \
54    --enable-languages="$languages" $optargs
55
56%if "%_host" != "%_build"
57  # Bug in gcc-3.2.1:
58  # Somehow, gcc doesn't get syslimits.h right for Cdn-Xs
59  mkdir -p gcc/include
60  cp ../gcc-%{gcc_pkgvers}/gcc/gsyslimits.h gcc/include/syslimits.h
61%endif
62
63  make all
64%if %build_infos
65  make info
66%endif
67  cd ..
68
Note: See TracBrowser for help on using the repository browser.