X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=packaging%2Fcross-armv7l-gcc48-icecream-backend.spec;h=3239987d3263c561098017c3e919ff1f445dcb0e;hb=135d550e26f7e477fff0c48f94ddc38cfa8d3028;hp=48f741cc36e71ae654377638add078473014bbb6;hpb=5d7a132a65a2701c3667e269902deeed53af674f;p=platform%2Fupstream%2Fgcc48.git diff --git a/packaging/cross-armv7l-gcc48-icecream-backend.spec b/packaging/cross-armv7l-gcc48-icecream-backend.spec index 48f741c..3239987 100644 --- a/packaging/cross-armv7l-gcc48-icecream-backend.spec +++ b/packaging/cross-armv7l-gcc48-icecream-backend.spec @@ -1,5 +1,5 @@ # -# spec file for package gcc (Version 4.0.1) +# spec file for package gcc (Version 4.8.2) # # Copyright (c) 2005 SUSE Linux AG, Nuernberg, Germany. # This file and all modifications and additions to the pristine @@ -56,11 +56,9 @@ ExclusiveArch: ppc ppc64 %ix86 x86_64 ia64 %define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64 URL: http://gcc.gnu.org/ -Version: 4.8.1 +Version: 4.8.2 Release: 1 -%define gcc_version %(echo %version | sed 's/_.*//') -%define gcc_dir_version %(echo %gcc_version | cut -d '.' -f 1-2) -%define snapshot_date %(echo %version | sed 's/[34]\.[0-9]\.[0-6]//' | sed 's/_/-/') +%define gcc_dir_version 4.8 %define binsuffix -4.8 BuildRoot: %{_tmppath}/%{name}-%{version}-build Source: gcc-%{version}.tar.bz2 @@ -70,7 +68,7 @@ Source4: ecj.jar Source6: baselibs.conf -Group: Development/Languages/C and C++ +Group: Development/Toolchain Summary: The GNU C Compiler and Support Files License: GPL-3.0+ @@ -288,6 +286,9 @@ TCFLAGS="$RPM_OPT_FLAGS" GCJFLAGS="$RPM_OPT_FLAGS $GCJ_EXTRA_FLAGS" \ --disable-plugin \ --with-bugurl="http://bugs.tizen.org/" \ --with-pkgversion="Tizen" \ +%if !%{build_fortran} + --disable-libquadmath \ +%endif %if !%{build_libjava} --disable-libgcj \ %else @@ -310,9 +311,8 @@ TCFLAGS="$RPM_OPT_FLAGS" GCJFLAGS="$RPM_OPT_FLAGS $GCJ_EXTRA_FLAGS" \ --enable-linker-build-id \ %if 0%{?gcc_target_arch:1} %if 0%{?gcc_icecream:1} - --with-build-sysroot=/ \ - --with-sysroot=%{_prefix}/%{gcc_target_arch}%{?canonical_target_abi:%canonical_target_abi} \ - --with-gxx-include-dir=%{_prefix}/%{gcc_target_arch}%{?canonical_target_abi:%canonical_target_abi}/usr/include/c++/%{gcc_dir_version} \ + --with-sysroot=/ \ + --with-gxx-include-dir=%{_prefix}/%{gcc_target_arch}%{?canonical_target_abi:%canonical_target_abi}/include/c++/%{gcc_dir_version} \ --enable-linux-futex \ %endif %if 0%{?canonical_target:1} @@ -348,9 +348,10 @@ TCFLAGS="$RPM_OPT_FLAGS" GCJFLAGS="$RPM_OPT_FLAGS $GCJ_EXTRA_FLAGS" \ %endif %if "%{TARGET_ARCH}" == "armv7l" --with-arch=armv7-a \ - --with-tune=cortex-a9 \ - --with-float=soft \ - --with-fpu=vfpv3-d16 \ + --with-tune=cortex-a8 \ + --with-float=softfp \ + --with-fpu=vfpv3 \ + --with-mode=thumb \ --disable-sjlj-exceptions \ %endif %if "%{TARGET_ARCH}" == "armv7hl" @@ -398,7 +399,7 @@ TCFLAGS="$RPM_OPT_FLAGS" GCJFLAGS="$RPM_OPT_FLAGS $GCJ_EXTRA_FLAGS" \ --build=%{GCCDIST} -make %{?jobs:-j%jobs} all-gcc TARGET-gcc="cc1 cc1plus gcc-cross xg++ native" +make %{?jobs:-j%jobs} all-gcc TARGET-gcc="cc1 cc1plus collect2 gcc-cross xg++ native" %install cd obj-%{GCCDIST} @@ -416,7 +417,7 @@ install -s $RPM_BUILD_ROOT/inst%{_prefix}/bin/%{CONFIGURE_TARGET}-gcc \ $RPM_BUILD_ROOT/env/usr/bin/gcc %define targetlibsubdir %{_libdir}/gcc/%{CONFIGURE_TARGET}/%{gcc_dir_version} -for back in cc1 cc1plus; do +for back in cc1 cc1plus collect2; do install -s -D $RPM_BUILD_ROOT/inst%{targetlibsubdir}/$back \ $RPM_BUILD_ROOT/env%{targetlibsubdir}/$back done