new target: arm-openmamba-linux-gnueabihf [release 4.9.2-2mamba;Thu Apr 09 2015]
This commit is contained in:
parent
e295aa7e88
commit
527498f321
100
gcc.spec
100
gcc.spec
@ -29,9 +29,9 @@
|
|||||||
%define disable_java 1
|
%define disable_java 1
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%if "%{?stage2}" == "1"
|
#% if "%{?stage2}" == "1"
|
||||||
%define bootstrap_append -stage2
|
# % define bootstrap_append -stage2
|
||||||
%endif
|
#% endif
|
||||||
|
|
||||||
%define libstdcxx_name libstdc++6
|
%define libstdcxx_name libstdc++6
|
||||||
%define libgcj_name libgcj4
|
%define libgcj_name libgcj4
|
||||||
@ -41,7 +41,7 @@
|
|||||||
|
|
||||||
Name: gcc
|
Name: gcc
|
||||||
Version: 4.9.2
|
Version: 4.9.2
|
||||||
Release: 1mamba
|
Release: 2mamba
|
||||||
Summary: GNU Compiler Collection (C, C++, Fortran, Java, Ada)
|
Summary: GNU Compiler Collection (C, C++, Fortran, Java, Ada)
|
||||||
Group: Applications/Development
|
Group: Applications/Development
|
||||||
Vendor: openmamba
|
Vendor: openmamba
|
||||||
@ -74,8 +74,14 @@ License: GPL
|
|||||||
BuildRequires: binutils
|
BuildRequires: binutils
|
||||||
%else
|
%else
|
||||||
BuildRequires: cross-%{_target_platform}-binutils
|
BuildRequires: cross-%{_target_platform}-binutils
|
||||||
|
%if "%{?stage1}" == "1"
|
||||||
|
BuildRequires: cross-%{_target_platform}-glibc-stage1
|
||||||
|
%endif
|
||||||
|
%if "%{?stage2}" == "1"
|
||||||
|
BuildRequires: cross-%{_target_platform}-glibc-stage2
|
||||||
|
%endif
|
||||||
%if "%{?stage1}" != "1"
|
%if "%{?stage1}" != "1"
|
||||||
%if "%{?stage2}" != "2"
|
%if "%{?stage2}" != "1"
|
||||||
%if "%{target_cpu}" != "avr"
|
%if "%{target_cpu}" != "avr"
|
||||||
BuildRequires: cross-%{_target_platform}-glibc
|
BuildRequires: cross-%{_target_platform}-glibc
|
||||||
%endif
|
%endif
|
||||||
@ -92,7 +98,7 @@ BuildRequires: libmpc-devel
|
|||||||
BuildRequires: libmpfr-devel >= 2.1.2
|
BuildRequires: libmpfr-devel >= 2.1.2
|
||||||
%if "%{_target_platform}" == "%{_build}"
|
%if "%{_target_platform}" == "%{_build}"
|
||||||
BuildRequires: glibc-devel >= 2.5
|
BuildRequires: glibc-devel >= 2.5
|
||||||
%if "%{?stage2}" != "1"
|
#% if "%{?stage2}" != "1"
|
||||||
BuildRequires: tetex >= 3.0
|
BuildRequires: tetex >= 3.0
|
||||||
BuildRequires: libgtk2-devel >= 2.8.17
|
BuildRequires: libgtk2-devel >= 2.8.17
|
||||||
BuildRequires: libalsa-devel >= 1.0.11
|
BuildRequires: libalsa-devel >= 1.0.11
|
||||||
@ -110,7 +116,7 @@ BuildRequires: antlr
|
|||||||
%endif
|
%endif
|
||||||
BuildRequires: libcairo-devel >= 1.4.10
|
BuildRequires: libcairo-devel >= 1.4.10
|
||||||
BuildRequires: libxcb-util-devel >= 0.2
|
BuildRequires: libxcb-util-devel >= 0.2
|
||||||
%endif
|
#% endif
|
||||||
#% else
|
#% else
|
||||||
# BuildRequires: cross-%{target_cpu}-glibc%{?glibc_require_append} >= 2.5
|
# BuildRequires: cross-%{target_cpu}-glibc%{?glibc_require_append} >= 2.5
|
||||||
%endif
|
%endif
|
||||||
@ -470,8 +476,7 @@ AutoReqProv: no
|
|||||||
Cross Platform gcc for %{_target_platform}.
|
Cross Platform gcc for %{_target_platform}.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -n gcc-%{version}%{?gcc_extraver}
|
%setup -q -n gcc-%{version}%{?gcc_extraver}
|
||||||
#-q -D
|
|
||||||
#-D -T
|
#-D -T
|
||||||
#:<< ___EOF
|
#:<< ___EOF
|
||||||
%patch2 -p0
|
%patch2 -p0
|
||||||
@ -533,7 +538,13 @@ case %{_target_platform} in
|
|||||||
ADDITIONAL_OPTS=""
|
ADDITIONAL_OPTS=""
|
||||||
;;
|
;;
|
||||||
arm-*)
|
arm-*)
|
||||||
|
abi=%{_target_platform}
|
||||||
|
abi=`echo ${abi/*-}`
|
||||||
|
if [ "$abi" = "gnueabihf" ]; then
|
||||||
|
ADDITIONAL_OPTS="--with-float=hard"
|
||||||
|
else
|
||||||
ADDITIONAL_OPTS=""
|
ADDITIONAL_OPTS=""
|
||||||
|
fi
|
||||||
#"--enable-multilib"
|
#"--enable-multilib"
|
||||||
;;
|
;;
|
||||||
avr*)
|
avr*)
|
||||||
@ -566,11 +577,13 @@ esac
|
|||||||
--disable-nls \
|
--disable-nls \
|
||||||
--disable-shared \
|
--disable-shared \
|
||||||
--disable-threads \
|
--disable-threads \
|
||||||
--enable-languages=c,objc,fortran \
|
--enable-languages=c \
|
||||||
--with-newlib \
|
--with-newlib \
|
||||||
--without-headers \
|
--without-headers \
|
||||||
--disable-libssp \
|
--disable-libssp \
|
||||||
--disable-libgomp \
|
--disable-libgomp \
|
||||||
|
--disable-libquadmath \
|
||||||
|
--disable-libatomic \
|
||||||
%if "%{_target_platform}" != "%{_host}"
|
%if "%{_target_platform}" != "%{_host}"
|
||||||
--with-local-prefix=/usr/%{_target_platform} \
|
--with-local-prefix=/usr/%{_target_platform} \
|
||||||
%endif
|
%endif
|
||||||
@ -1274,34 +1287,6 @@ find %{buildroot}%{_libdir}/gcc -name lib*.a -exec chmod -w {} \;
|
|||||||
%doc gcc/doc/gccint.pdf
|
%doc gcc/doc/gccint.pdf
|
||||||
%endif # "%{disable_doc}" != "1"
|
%endif # "%{disable_doc}" != "1"
|
||||||
|
|
||||||
%else
|
|
||||||
#
|
|
||||||
# Cross-platform single package
|
|
||||||
#
|
|
||||||
%files -n cross-%{_target_platform}-%{name}%{?bootstrap_append}
|
|
||||||
%defattr(-,root,root)
|
|
||||||
%{_bindir}/%{_target_platform}-*
|
|
||||||
%if "%{_target_platform}" != "avr"
|
|
||||||
%if "%{?stage1}" != "1"
|
|
||||||
%{_prefix}/%{_target_platform}/include/*
|
|
||||||
%{_prefix}/%{_target_platform}/%{_lib}/*
|
|
||||||
%endif
|
|
||||||
%{_prefix}/%{_target_platform}/%{_lib}/libgfortran.a
|
|
||||||
%{_prefix}/%{_target_platform}/%{_lib}/libgfortran.la
|
|
||||||
%{_prefix}/%{_target_platform}/%{_lib}/libobjc.a
|
|
||||||
%{_prefix}/%{_target_platform}/%{_lib}/libobjc.la
|
|
||||||
%if "%{target_cpu}" == "ppc"
|
|
||||||
%{_prefix}/%{_target_platform}/%{_lib}/nof/libgfortran.a
|
|
||||||
%{_prefix}/%{_target_platform}/%{_lib}/nof/libgfortran.la
|
|
||||||
%{_prefix}/%{_target_platform}/%{_lib}/nof/libobjc.a
|
|
||||||
%{_prefix}/%{_target_platform}/%{_lib}/nof/libobjc.la
|
|
||||||
%endif
|
|
||||||
%endif
|
|
||||||
%{_libdir}/gcc/%{_target_platform}/%{version}/*
|
|
||||||
%{_libexecdir}/gcc/%{_target_platform}/%{version}/*
|
|
||||||
%{_mandir}/man1/%{_target_platform}-*
|
|
||||||
%endif # cross-platform
|
|
||||||
|
|
||||||
%ifarch x86_64
|
%ifarch x86_64
|
||||||
%files -n gcc-multilib
|
%files -n gcc-multilib
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
@ -1389,7 +1374,46 @@ find %{buildroot}%{_libdir}/gcc -name lib*.a -exec chmod -w {} \;
|
|||||||
%{_datadir}/gdb/auto-load/usr/lib/libstdc++.so.*-gdb.py
|
%{_datadir}/gdb/auto-load/usr/lib/libstdc++.so.*-gdb.py
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
%else
|
||||||
|
#
|
||||||
|
# Cross-platform single package
|
||||||
|
#
|
||||||
|
%files -n cross-%{_target_platform}-%{name}%{?bootstrap_append}
|
||||||
|
%defattr(-,root,root)
|
||||||
|
%{_bindir}/%{_target_platform}-*
|
||||||
|
%if "%{_target_platform}" != "avr"
|
||||||
|
%if "%{?stage1}" != "1"
|
||||||
|
%{_prefix}/%{_target_platform}/include/*
|
||||||
|
%if "%{target_cpu}" == "x86_64"
|
||||||
|
%{_prefix}/%{_target_platform}/%{_lib}/*
|
||||||
|
%else
|
||||||
|
%{_prefix}/%{_target_platform}/lib/*
|
||||||
|
%endif
|
||||||
|
%endif
|
||||||
|
#%{_prefix}/%{_target_platform}/%{_lib}/libgfortran.a
|
||||||
|
#%{_prefix}/%{_target_platform}/%{_lib}/libgfortran.la
|
||||||
|
#%{_prefix}/%{_target_platform}/%{_lib}/libobjc.a
|
||||||
|
#%{_prefix}/%{_target_platform}/%{_lib}/libobjc.la
|
||||||
|
%if "%{target_cpu}" == "ppc"
|
||||||
|
%{_prefix}/%{_target_platform}/%{_lib}/nof/libgfortran.a
|
||||||
|
%{_prefix}/%{_target_platform}/%{_lib}/nof/libgfortran.la
|
||||||
|
%{_prefix}/%{_target_platform}/%{_lib}/nof/libobjc.a
|
||||||
|
%{_prefix}/%{_target_platform}/%{_lib}/nof/libobjc.la
|
||||||
|
%endif
|
||||||
|
%endif
|
||||||
|
%{_libdir}/gcc/%{_target_platform}/%{version}/*
|
||||||
|
%if "%{target_cpu}" == "x86_64"
|
||||||
|
%{_libexecdir}/gcc/%{_target_platform}/%{version}/*
|
||||||
|
%else
|
||||||
|
%{_prefix}/libexec/gcc/%{_target_platform}/%{version}/*
|
||||||
|
%endif
|
||||||
|
%{_mandir}/man1/%{_target_platform}-*
|
||||||
|
%endif # cross-platform
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Apr 09 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 4.9.2-2mamba
|
||||||
|
- new target: arm-openmamba-linux-gnueabihf
|
||||||
|
|
||||||
* Thu Oct 30 2014 Automatic Build System <autodist@mambasoft.it> 4.9.2-1mamba
|
* Thu Oct 30 2014 Automatic Build System <autodist@mambasoft.it> 4.9.2-1mamba
|
||||||
- automatic version update by autodist
|
- automatic version update by autodist
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user