diff options
author | cieciwa | 2003-03-06 08:14:17 (GMT) |
---|---|---|
committer | cvs2git | 2012-06-24 12:13:13 (GMT) |
commit | 5544558aedc700c5f1e7f369ba39719a0db08f5e (patch) | |
tree | c25268ef6eb93e2f423b31856dc00f185893ab25 | |
download | kgcc-5544558aedc700c5f1e7f369ba39719a0db08f5e.zip kgcc-5544558aedc700c5f1e7f369ba39719a0db08f5e.tar.gz |
- GCC 3.2.2 for kernel compilation.
initial.
Changed files:
kgcc.spec -> 1.1
Notes
Notes:
- GCC 3.2.2 for kernel compilation.
initial.
-rw-r--r-- | kgcc.spec | 78 |
1 files changed, 78 insertions, 0 deletions
diff --git a/kgcc.spec b/kgcc.spec new file mode 100644 index 0000000..cf430b7 --- /dev/null +++ b/kgcc.spec @@ -0,0 +1,78 @@ +Summary: Kernel GNU C Compiler +Summary(pl): Kompilator GNU C dla jadra +Name: kgcc +Version: 3.2.2 +Release: 1 +License: GPL +Group: Development/Languages +Source0: ftp://gcc.gnu.org/pub/gcc/releases/gcc-%{version}/gcc-%{version}.tar.bz2 +Requires: binutils >= 2.9.1.0.18 +BuildRequires: bison +URL: http://gcc.gnu.org/ +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%description + +%description -l pl + +%prep +%setup -q -n gcc-%{version} + +%build +#rm -rf gcc/{cp,f,objc} +#rm -rf lib{f2c,io} +#rm -rf texinfo + +rm -rf obj-%{_target_platform} +install -d obj-%{_target_platform} && cd obj-%{_target_platform} + +CFLAGS="%{rpmcflags}" \ +CXXFLAGS="%{rpmcflags}" \ +../configure \ + --prefix=%{_prefix} \ + --infodir=%{_infodir} \ + --enable-shared \ + --enable-threads=posix \ + --enable-languages="c" \ + --with-gnu-as \ + --with-gnu-ld \ + --with-system-zlib \ + --without-x \ + %{_target_platform} + +PATH=$PATH:/sbin:%{_sbindir} +touch ../gcc/c-gperf.h + +%{__make} \ + bootstrap-lean + +%install +rm -rf $RPM_BUILD_ROOT + +cd obj-%{_target_platform} +PATH=$PATH:/sbin:%{_sbindir} + +%{__make} prefix=$RPM_BUILD_ROOT%{_prefix} infodir=$RPM_BUILD_ROOT%{_prefix} install + +mv -f $RPM_BUILD_ROOT%{_bindir}/gcc $RPM_BUILD_ROOT%{_bindir}/kgcc + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(644,root,root,755) +%dir %{_libdir}/gcc-lib/%{_target_cpu}*/* +%dir %{_libdir}/gcc-lib/%{_target_cpu}*/*/include + +%attr(755,root,root) %{_bindir}/kgcc +%attr(755,root,root) %{_libdir}/gcc-lib/%{_target_cpu}*/*/cc1 +%attr(755,root,root) %{_libdir}/gcc-lib/%{_target_cpu}*/*/cpp* +%attr(755,root,root) %{_libdir}/gcc-lib/%{_target_cpu}*/*/collect2 +%{_libdir}/gcc-lib/%{_target_cpu}*/*/libgcc* +%{_libdir}/gcc-lib/%{_target_cpu}*/*/specs + +%ifnarch alpha +%attr(755,root,root) %{_libdir}/gcc-lib/%{_target_cpu}*/*/*.o +%endif + +%{_libdir}/gcc-lib/%{_target_cpu}*/*/include/*.h |