2 # spec file for package gcc48
4 # Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
6 # All modifications and additions to the file contributed by third parties
7 # remain the property of their copyright owners, unless otherwise agreed
8 # upon. The license for this file, and modifications and additions to the
9 # file, is the same license as for the pristine package itself (unless the
10 # license for the pristine package is not an Open Source License, in which
11 # case the license is the MIT License). An "Open Source License" is a
12 # license that conforms to the Open Source Definition (Version 1.9)
13 # published by the Open Source Initiative.
15 # Please submit bugfixes or comments via http://bugs.opensuse.org/
24 %define quadmath_arch %ix86 x86_64 ia64
25 %define tsan_arch x86_64
26 %define asan_arch x86_64 %ix86 ppc ppc64 %arm
27 %define itm_arch x86_64 %ix86 %arm ppc ppc64
28 %define atomic_arch x86_64 %ix86 %arm ppc ppc64 s390 s390x
30 # We don't want to build java
32 %define build_libjava 0
35 %define build_fortran 0%{?building_libjava:1}%{?building_libffi:1}
36 %define build_objc 0%{?building_libjava:1}%{?building_libffi:1}
37 %define build_objcp 0%{?building_libjava:1}%{?building_libffi:1}
38 %define build_with_mudflap 0
49 # For optional compilers only build C, C++ and Fortran
50 %if 0%{?build_optional_compiler_languages:1}
53 %define build_libjava 0
58 # Shared library SONAME versions
60 %define libgcj_sover %{nil}
61 %define libgcj_bc_sover %{nil}
62 %define libffi_sover %{nil}
63 %define libmudflap_sover %{nil}
64 %define libgomp_sover %{nil}
65 %define libstdcxx_sover %{nil}
66 %define libobjc_sover %{nil}
67 %define libgfortran_sover %{nil}
68 %define libquadmath_sover %{nil}
69 %define libasan_sover %{nil}
70 %define libtsan_sover %{nil}
71 %define libatomic_sover %{nil}
72 %define libitm_sover %{nil}
74 # Shared library package suffix
75 # This is used for the "non-standard" set of libraries, the standard
76 # being defined by %product_libs_gcc_ver, the GCC version that should
77 # provide un-suffixed shared library packages following the shared-library
78 # policy. Even suffixed variants should provide the shared-library policy
79 # mandated names and ensure they conflict with each other.
80 # Note that on SONAME changes of any library the %product_libs_gcc_ver
81 # define needs to be either split or the newest GCC version still providing
82 # the old SONAME needs to unconditionally produce an un-suffixed library
83 # if %product_libs_gcc_ver is newer than it. Similar the _oldest_ GCC
84 # version first providing a new SONAME needs to unconditionally produce
85 # an un-suffixed library if %product_libs_gcc_ver is lower that it.
86 %if %{!?product_libs_gcc_ver:@base_ver@}%{?product_libs_gcc_ver} != @base_ver@
89 %define libgcc_s_suffix %{?pne:-gcc@base_ver@}
90 # libgcj SONAME changes with every GCC version
91 %define libgcj_suffix %nil
92 %define libgcj_bc_suffix %{?pne:-gcc@base_ver@}
93 %define libffi_suffix %{?pne:-gcc@base_ver@}
94 %define libmudflap_suffix %{?pne:-gcc@base_ver@}
95 %define libgomp_suffix %{?pne:-gcc@base_ver@}
96 %define libstdcxx_suffix %{?pne:-gcc@base_ver@}
97 %define libobjc_suffix %{?pne:-gcc@base_ver@}
98 %define libgfortran_suffix %{?pne:-gcc@base_ver@}
99 %define libquadmath_suffix %{?pne:-gcc@base_ver@}
100 %define libasan_suffix %{?pne:-gcc@base_ver@}
101 %define libtsan_suffix %{?pne:-gcc@base_ver@}
102 %define libatomic_suffix %{?pne:-gcc@base_ver@}
103 %define libitm_suffix %{?pne:-gcc@base_ver@}
109 BuildRequires: gcc-c++
112 BuildRequires: glibc-devel-32bit
113 BuildRequires: mpc-devel
114 BuildRequires: mpfr-devel
116 BuildRequires: makeinfo
117 BuildRequires: zlib-devel
118 %ifarch %ix86 x86_64 ppc ppc64 s390 s390x ia64 %sparc hppa %arm
119 BuildRequires: cloog-isl-devel
120 BuildRequires: isl-devel
123 %define hostsuffix -4.7
124 BuildRequires: gcc47-ada
126 %if 0%{?building_libjava:1}%{?building_testsuite:1}
127 BuildRequires: fastjar
129 %if 0%{?building_libffi:1}
130 BuildRequires: pkg-config
133 BuildRequires: libunwind-devel
136 BuildRequires: dejagnu
137 BuildRequires: expect
141 %define separate_bi32 0
142 %define separate_bi64 0
144 # Beware, this does _not_ separate libgcj, as for that one multilibing
145 # is inactive for the time being
146 %define separate_bi64 1
148 %ifarch x86_64 s390x ppc64 sparc64
149 %define separate_bi32 1
152 # Define two macros to trigger -32bit or -64bit package variants
153 %define separate_biarch 0
155 %define separate_biarch 1
156 %define separate_biarch_suffix -32bit
159 %define separate_biarch 1
160 %define separate_biarch_suffix -64bit
163 %ifarch x86_64 ia64 s390x alpha ppc64 sparc64
164 # 64-bit is primary build target
165 %define build_primary_64bit 1
167 %define build_primary_64bit 0
170 %define biarch_libjava 0
173 %define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
175 URL: http://gcc.gnu.org/
178 %define gcc_dir_version 4.8
179 %define binsuffix -4.8
182 %if !0%{?building_libjava:1}%{?building_libffi:1}%{?building_testsuite:1}
183 Requires: binutils glibc-devel
184 Requires: cpp@base_ver@ = %{version}-%{release}
185 Requires: libgcc_s%{libgcc_s} >= %{version}-%{release}
186 Requires: libgomp%{libgomp_sover} >= %{version}-%{release}
187 %if %{build_with_mudflap}
188 Requires: libmudflap%{libmudflap_sover} >= %{version}-%{release}
189 Requires: libmudflapth%{libmudflap_sover} >= %{version}-%{release}
192 Requires: libasan%{libasan_sover} >= %{version}-%{release}
195 Requires: libtsan%{libtsan_sover} >= %{version}-%{release}
198 Requires: libatomic%{libatomic_sover} >= %{version}-%{release}
201 Requires: libitm%{libitm_sover} >= %{version}-%{release}
203 Suggests: gcc@base_ver@-info gcc@base_ver@-locale
207 BuildRoot: %{_tmppath}/%{name}-%{version}-build
208 Source: gcc-%{version}.tar.bz2
210 Source3: gcc48-rpmlintrc
212 Source6: baselibs.conf
215 # GCC-TESTSUITE-DELETE-BEGIN
216 # LIBJAVA-DELETE-BEGIN
217 Group: Development/Toolchain
218 Summary: The GNU C Compiler and Support Files
222 Core package for the GNU Compiler Collection, including the C language
225 Language frontends other than C are split to different sub-packages,
226 namely gcc-ada, gcc-c++, gcc-fortran, gcc-java, gcc-objc and
228 # LIBFFI-DELETE-BEGIN
233 %package -n gcc@base_ver@-32bit
234 Summary: The GNU C Compiler 32bit support
235 Requires: gcc@base_ver@ = %{version}-%{release}
236 Requires: libgcc_s%{libgcc_s}-32bit >= %{version}-%{release}
237 Requires: libgomp%{libgomp_sover}-32bit >= %{version}-%{release}
238 %if %{build_with_mudflap}
239 Requires: libmudflap%{libmudflap_sover}-32bit >= %{version}-%{release}
240 Requires: libmudflapth%{libmudflap_sover}-32bit >= %{version}-%{release}
242 Requires: glibc-devel-32bit
244 %description -n gcc@base_ver@-32bit
245 This package contains 32bit support for the GNU Compiler Collection.
247 %package -n gcc@base_ver@-64bit
248 Summary: The GNU C Compiler 64bit support
249 Requires: gcc@base_ver@ = %{version}-%{release}
250 Requires: libgcc_s%{libgcc_s}-64bit >= %{version}-%{release}
251 Requires: libgomp%{libgomp_sover}-64bit >= %{version}-%{release}
252 %if %{build_with_mudflap}
253 Requires: libmudflap%{libmudflap_sover}-64bit >= %{version}-%{release}
254 Requires: libmudflapth%{libmudflap_sover}-64bit >= %{version}-%{release}
256 Requires: glibc-devel-64bit
258 %description -n gcc@base_ver@-64bit
259 This package contains 64bit support for the GNU Compiler Collection.
263 Summary: Locale Data for the GNU Compiler Collection
265 Requires: gcc@base_ver@ = %{version}-%{release}
268 Locale data for the GNU Compiler Collection (GCC) to give error message
269 in the current locale.
273 Summary: The GNU C++ Compiler
275 Requires: gcc@base_ver@ = %{version}-%{release}
276 Requires: libstdc++@base_ver@-devel = %{version}-%{release}
279 This package contains the GNU compiler for C++.
282 %package -n libstdc++@base_ver@-devel@variant@
283 Summary: Include Files and Libraries mandatory for Development
284 License: GPL-3.0-with-GCC-exception
285 Requires: libstdc++%{libstdcxx_sover}@variant@ >= %{version}-%{release}
286 Requires: glibc-devel@variant@
288 Requires: libunwind-devel
291 %description -n libstdc++@base_ver@-devel@variant@
292 This package contains all the headers and libraries of the standard C++
293 library. It is needed for compiling C++ code.
296 %package -n libstdc++@base_ver@-doc
297 Summary: Documentation for the GNU C++ standard library
301 %description -n libstdc++@base_ver@-doc
302 Extensive HTML documentation for the GNU C++ standard library.
306 %package -n libgcc_s%{libgcc_s}%{libgcc_s_suffix}@variant@
307 Summary: C compiler runtime library
308 License: GPL-3.0-with-GCC-exception
309 Group: System/Libraries
310 Provides: libgcc_s%{libgcc_s}@variant@ = %{version}-%{release}
312 %description -n libgcc_s%{libgcc_s}%{libgcc_s_suffix}@variant@
313 Libgcc is needed for dynamically linked C programs.
315 %post -n libgcc_s%{libgcc_s}%{libgcc_s_suffix}@variant@
318 %postun -n libgcc_s%{libgcc_s}%{libgcc_s_suffix}@variant@
323 %package -n libgomp%{libgomp_sover}%{libgomp_suffix}@variant@
324 Summary: The GNU compiler collection OpenMP runtime library
325 License: GPL-3.0-with-GCC-exception
326 Group: System/Libraries
327 Provides: libgomp%{libgomp_sover}@variant@ = %{version}-%{release}
329 %description -n libgomp%{libgomp_sover}%{libgomp_suffix}@variant@
330 This is the OpenMP runtime library needed by OpenMP enabled programs
331 that were built with the -fopenmp compiler option and by programs that
332 were auto-parallelized via the -ftree-parallelize-loops compiler
336 %post -n libgomp%{libgomp_sover}%{libgomp_suffix}@variant@
339 %postun -n libgomp%{libgomp_sover}%{libgomp_suffix}@variant@
344 %package -n libstdc++%{libstdcxx_sover}%{libstdcxx_suffix}@variant@
345 Summary: The standard C++ shared library
346 License: GPL-3.0-with-GCC-exception
347 Group: System/Libraries
348 Suggests: libstdc++%{libstdcxx_sover}-locale
349 Provides: libstdc++%{libstdcxx_sover}@variant@ = %{version}-%{release}
351 %description -n libstdc++%{libstdcxx_sover}%{libstdcxx_suffix}@variant@
352 The standard C++ library, needed for dynamically linked C++ programs.
355 %post -n libstdc++%{libstdcxx_sover}%{libstdcxx_suffix}@variant@
358 %postun -n libstdc++%{libstdcxx_sover}%{libstdcxx_suffix}@variant@
362 %package -n libstdc++%{libstdcxx_sover}%{libstdcxx_suffix}-locale
363 Summary: Locale Data for the standard C++ shared library
364 License: GPL-3.0-with-GCC-exception
365 Group: System/Libraries
366 Provides: libstdc++%{libstdcxx_sover}-locale = %{version}-%{release}
368 %description -n libstdc++%{libstdcxx_sover}%{libstdcxx_suffix}-locale
369 The standard C++ library locale data.
373 Summary: Documentation for the GNU compiler collection
378 GNU info-pages for the GNU compiler collection covering both user-level
379 and internals documentation.
383 %package objc@variant@
384 Summary: GNU Objective C Compiler
386 Requires: gcc@base_ver@ = %{version}-%{release}
387 Requires: libobjc%{libobjc_sover}@variant@ >= %{version}-%{release}
389 %description objc@variant@
390 This package contains the GNU Objective C compiler. Objective C is an
391 object oriented language, created by Next Inc. and used in their
392 Nextstep OS. The source code is available in the gcc package.
396 %package -n libobjc%{libobjc_sover}%{libobjc_suffix}@variant@
397 Summary: Library for the GNU Objective C Compiler
398 License: GPL-3.0-with-GCC-exception
399 Provides: libobjc%{libobjc_sover}@variant@ = %{version}-%{release}
401 %description -n libobjc%{libobjc_sover}%{libobjc_suffix}@variant@
402 The library for the GNU Objective C compiler.
404 %post -n libobjc%{libobjc_sover}%{libobjc_suffix}@variant@
407 %postun -n libobjc%{libobjc_sover}%{libobjc_suffix}@variant@
412 Summary: GNU Objective C++ Compiler
414 Requires: gcc@base_ver@-objc = %{version}-%{release}
415 Requires: gcc@base_ver@-c++ = %{version}-%{release}
418 This package contains the GNU Objective C++ compiler. Objective C++ is an
419 object oriented language, created by Next Inc. and used in their
420 Nextstep OS. The source code is available in the gcc package.
423 %package -n cpp@base_ver@
424 Summary: The GCC Preprocessor
427 %description -n cpp@base_ver@
428 This Package contains just the preprocessor that is used by the X11
433 %package ada@variant@
434 Summary: GNU Ada95 Compiler Based on GCC (GNAT)
436 Requires: gcc@base_ver@@variant@ = %{version}-%{release}
437 Requires: libada@base_ver@@variant@ = %{version}-%{release}
439 %description ada@variant@
440 This package contains an Ada95 compiler and associated development
441 tools based on the GNU GCC technology. Ada95 is the object oriented
442 successor of the Ada83 language. To build this package from source you
443 must have installed a binary version to bootstrap the compiler.
447 %package -n libada@base_ver@@variant@
448 Summary: GNU Ada Runtime Libraries
449 License: GPL-3.0-with-GCC-exception
450 %description -n libada@base_ver@@variant@
451 This package contains the shared libraries required to run programs
452 compiled with the GNU Ada compiler (GNAT) if they are compiled to use
453 shared libraries. It also contains the shared libraries for the
454 Implementation of the Ada Semantic Interface Specification (ASIS), the
455 implementation of Distributed Systems Programming (GLADE) and the Posix
456 1003.5 Binding (Florist).
458 %post -n libada@base_ver@@variant@
461 %postun -n libada@base_ver@@variant@
466 %package fortran@variant@
467 Summary: The GNU Fortran Compiler and Support Files
469 Requires: gcc@base_ver@ = %{version}-%{release}
470 Requires: libgfortran%{libgfortran_sover}@variant@ >= %{version}-%{release}
471 %ifarch %quadmath_arch
472 Requires: libquadmath%{libquadmath_sover}@variant@ >= %{version}-%{release}
475 %description fortran@variant@
476 This is the Fortran compiler of the GNU Compiler Collection (GCC).
480 %package -n libgfortran%{libgfortran_sover}%{libgfortran_suffix}@variant@
481 Summary: The GNU Fortran Compiler Runtime Library
482 License: GPL-3.0-with-GCC-exception
483 %ifarch %quadmath_arch
484 Requires: libquadmath%{libquadmath_sover}@variant@ >= %{version}-%{release}
486 Provides: libgfortran%{libgfortran_sover}@variant@ = %{version}-%{release}
488 %description -n libgfortran%{libgfortran_sover}%{libgfortran_suffix}@variant@
489 The runtime library needed to run programs compiled with the Fortran compiler
490 of the GNU Compiler Collection (GCC).
492 %post -n libgfortran%{libgfortran_sover}%{libgfortran_suffix}@variant@
495 %postun -n libgfortran%{libgfortran_sover}%{libgfortran_suffix}@variant@
500 %package -n libquadmath%{libquadmath_sover}%{libquadmath_suffix}@variant@
501 Summary: The GNU Fortran Compiler Quadmath Runtime Library
503 Provides: libquadmath%{libquadmath_sover}@variant@ = %{version}-%{release}
505 %description -n libquadmath%{libquadmath_sover}%{libquadmath_suffix}@variant@
506 The runtime library needed to run programs compiled with the Fortran compiler
507 of the GNU Compiler Collection (GCC) and quadruple precision floating point
510 %post -n libquadmath%{libquadmath_sover}%{libquadmath_suffix}@variant@
513 %postun -n libquadmath%{libquadmath_sover}%{libquadmath_suffix}@variant@
518 %package -n libmudflap@base_ver@@variant@
519 Summary: The Mudflap Extension Runtime Library
520 License: GPL-3.0-with-GCC-exception
522 %description -n libmudflap@base_ver@@variant@
523 This is the Mudflap Extension Runtime Library.
525 %post -n libmudflap@base_ver@@variant@
528 %postun -n libmudflap@base_ver@@variant@
533 %package -n libitm%{libitm_sover}%{libitm_suffix}@variant@
534 Summary: The GNU Compiler Transactional Memory Runtime Library
537 %description -n libitm%{libitm_sover}%{libitm_suffix}@variant@
538 The runtime library needed to run programs compiled with the
539 -fgnu-tm option of the GNU Compiler Collection (GCC).
541 %post -n libitm%{libitm_sover}%{libitm_suffix}@variant@
544 %postun -n libitm%{libitm_sover}%{libitm_suffix}@variant@
549 %package -n libasan%{libasan_sover}%{libasan_suffix}@variant@
550 Summary: The GNU Compiler Address Sanitizer Runtime Library
553 %description -n libasan%{libasan_sover}%{libasan_suffix}@variant@
554 The runtime library needed to run programs compiled with the
555 -fsanitize=address option of the GNU Compiler Collection (GCC).
557 %post -n libasan%{libasan_sover}%{libasan_suffix}@variant@
560 %postun -n libasan%{libasan_sover}%{libasan_suffix}@variant@
565 %package -n libtsan%{libtsan_sover}%{libtsan_suffix}@variant@
566 Summary: The GNU Compiler Thread Sanitizer Runtime Library
569 %description -n libtsan%{libtsan_sover}%{libtsan_suffix}@variant@
570 The runtime library needed to run programs compiled with the
571 -fsanitize=thread option of the GNU Compiler Collection (GCC).
573 %post -n libtsan%{libtsan_sover}%{libtsan_suffix}@variant@
576 %postun -n libtsan%{libtsan_sover}%{libtsan_suffix}@variant@
581 %package -n libatomic%{libatomic_sover}%{libatomic_suffix}@variant@
582 Summary: The GNU Compiler Atomic Operations Runtime Library
583 License: GPL-3.0-with-GCC-exception
585 %description -n libatomic%{libatomic_sover}%{libatomic_suffix}@variant@
586 The runtime library for atomic operations of the GNU Compiler Collection (GCC).
588 %post -n libatomic%{libatomic_sover}%{libatomic_suffix}@variant@
591 %postun -n libatomic%{libatomic_sover}%{libatomic_suffix}@variant@
596 %package -n libgcj@base_ver@
598 Summary: Java Runtime Library for gcc
599 License: GPL-2.0-with-classpath-exception
600 Group: System/Libraries
602 %description -n libgcj@base_ver@
603 This library is needed if you want to use the GNU Java compiler, gcj.
604 Source code for this package is in gcc.
606 %post -n libgcj@base_ver@
609 %postun -n libgcj@base_ver@
613 %package -n gcc@base_ver@-java
614 Summary: The GNU Java Compiler
616 Requires: gcc@base_ver@ = %{version}
617 Requires: libgcj@base_ver@-devel = %{version}-%{release}
619 %description -n gcc@base_ver@-java
620 The Java compiler from the GCC-tools-suite.
623 %package -n libgcj_bc%{libgcj_bc_sover}%{libgcj_bc_suffix}
624 Summary: Fake library for BC-ABI compatibility.
625 License: GPL-2.0-with-classpath-exception
626 # libgcj_bc is special in that it just contains a symlink to
627 # a proper libgcj version. So require that library and add
628 # provides for the shlib version as created at link time
629 Requires: libgcj%{libgcj_sover} >= %{version}-%{release}
630 %ifarch x86_64 ia64 ppc64 s390x sparc64 aarch64
631 Provides: libgcj_bc.so.%{libgcj_bc_sover}()(64bit)
633 Provides: libgcj_bc.so.%{libgcj_bc_sover}
636 %description -n libgcj_bc%{libgcj_bc_sover}%{libgcj_bc_suffix}
637 A fake library that is used at link time only. It ensures that
638 binaries built with the BC-ABI link against a constant SONAME.
639 This way, BC-ABI binaries continue to work if the SONAME underlying
643 %package -n libgcj@base_ver@-jar
644 Summary: Java runtime library (jar files).
645 License: GPL-2.0-with-classpath-exception
647 %description -n libgcj@base_ver@-jar
648 These are the jar files that go along with the gcj front end to gcc.
651 %package -n libgcj@base_ver@-devel
652 Summary: Include Files and Libraries mandatory for Development.
653 License: GPL-2.0-with-classpath-exception
654 Requires: libstdc++@base_ver@-devel = %{version}
655 Requires: libgcj%{libgcj_sover} >= %{version}-%{release}
656 Requires: libgcj_bc%{libgcj_bc_sover} >= %{version}-%{release}
657 Requires: libgcj@base_ver@-jar = %{version}-%{release}
659 Requires: libart_lgpl-devel
660 Requires: glibc-devel
663 Requires: libunwind-devel
666 %description -n libgcj@base_ver@-devel
667 This package contains all necessary include files and libraries needed
668 to develop applications that require these.
671 %package -n gcc@base_ver@-gij
672 Summary: Java Bytecode Interpreter for gcc
673 License: GPL-2.0-with-classpath-exception
674 Requires: libgcj%{libgcj_sover} >= %{version}-%{release}
676 %description -n gcc@base_ver@-gij
677 This package contains the java bytecode interpreter gij and related tools.
681 %package -n libffi%{libffi_sover}%{libffi_suffix}@variant@
682 Summary: Foreign Function Interface library
683 License: BSD-3-Clause
685 %description -n libffi%{libffi_sover}%{libffi_suffix}@variant@
686 A foreign function interface is the popular name for the interface that allows code written in one language to call code written in another language.
688 %post -n libffi%{libffi_sover}%{libffi_suffix}@variant@
691 %postun -n libffi%{libffi_sover}%{libffi_suffix}@variant@
696 %package -n libffi@base_ver@-devel@variant@
697 Summary: Foreign Function Interface library development files
698 License: BSD 3-Clause
699 Requires: libffi%{libffi_sover}@variant@ >= %{version}-%{release}
701 %description -n libffi@base_ver@-devel@variant@
702 A foreign function interface is the popular name for the interface that allows code written in one language to call code written in another language.
705 %package -n gcc@base_ver@-testresults
706 # GCC-TESTSUITE-DELETE-END
707 Summary: Testsuite results
708 License: SUSE-Public-Domain
710 %description -n gcc@base_ver@-testresults
711 Results from running the gcc and target library testsuites.
716 # Define the canonical target and host architecture
717 # %gcc_target_arch is supposed to be the full target triple
718 # %TARGET_ARCH is the canonicalized CPU part
719 # %CONFIGURE_TARGET is the target triple used for --target=
720 %if 0%{?gcc_target_arch:1}
721 %define CONFIGURE_TARGET %{gcc_target_arch}
722 %define TARGET_ARCH %(echo %{gcc_target_arch} | cut -d - -f 1 | sed -e "s/i.86/i586/;s/ppc/powerpc/;s/sparc64.*/sparc64/;s/sparcv.*/sparc/;")
723 %if 0%{?gcc_icecream:1} && %{TARGET_ARCH} == "powerpc"
724 %define CONFIGURE_TARGET powerpc64-tizen-linux
726 %if 0%{?gcc_icecream:1} && %{TARGET_ARCH} == "powerpc64"
727 %define CONFIGURE_TARGET powerpc64-tizen-linux
729 %if 0%{?gcc_icecream:1} && %{TARGET_ARCH} == "i586"
730 %define CONFIGURE_TARGET i586-tizen-linux
732 %if 0%{?gcc_icecream:1} && %{TARGET_ARCH} == "armv7l"
733 %define CONFIGURE_TARGET armv7l-tizen-linux-gnueabi
735 %if 0%{?gcc_icecream:1} && %{TARGET_ARCH} == "armv7hl"
736 %define CONFIGURE_TARGET armv7hl-tizen-linux-gnueabi
738 %if 0%{?gcc_icecream:1} && %{TARGET_ARCH} == "armv5tel"
739 %define CONFIGURE_TARGET armv5tel-tizen-linux-gnueabi
742 %define TARGET_ARCH %(echo %{_target_cpu} | sed -e "s/i.86/i586/;s/ppc/powerpc/;s/sparc64.*/sparc64/;s/sparcv.*/sparc/;")
744 %define HOST_ARCH %(echo %{_host_cpu} | sed -e "s/i.86/i586/;s/ppc/powerpc/;s/sparc64.*/sparc64/;s/sparcv.*/sparc/;")
746 %define biarch %(case " %{biarch_targets} " in (*" %{TARGET_ARCH} "*) echo 1;; (*) echo 0;; esac)
749 %define GCCDIST powerpc64-tizen-linux
752 %define GCCDIST sparc64-tizen-linux
755 %define GCCDIST %{HOST_ARCH}-tizen-linux-gnueabi
757 %define GCCDIST %{HOST_ARCH}-tizen-linux
762 %define libsubdir %{_libdir}/gcc/%{GCCDIST}/%{gcc_dir_version}
763 %define gxxinclude %{_prefix}/include/c++/%{gcc_dir_version}
767 # Versionspecific directories
768 %define versmainlibdir %{libsubdir}
769 %define versmainlibdirbi32 %{libsubdir}/32
770 %define versmainlibdirbi64 %{libsubdir}/64
772 %define versmainlibdirbi32 %{libsubdir}
773 %define versmainlibdirbi64 %{libsubdir}/64
775 %if %{build_primary_64bit}
776 %define versmainlibdirbi %{versmainlibdirbi32}
778 %define versmainlibdirbi %{versmainlibdirbi64}
781 %define mainlibdir %{_libdir}
782 %define mainlibdirbi32 %{_prefix}/lib
783 %define mainlibdirbi64 %{_prefix}/lib64
784 %if %{build_primary_64bit}
785 %define mainlibdirbi %{mainlibdirbi32}
787 %define mainlibdirbi %{mainlibdirbi64}
791 # Now define a few macros that make it easy to package libs and
792 # related files just to the right package, without caring for the
793 # exact path the files are in.
794 # %mainlib package X from all dirs that belong to the main package
795 # %biarchlib package X from all dirs that belong to the -32/64bit package
796 %define mainlib() %{mainlibdir}/%1\
798 %define biarchlib() %{nil}
800 %if !%{separate_biarch}
801 %define mainlib() %{mainlibdir}/%1\
805 %define biarchlib() %{mainlibdirbi}/%1\
810 %define versmainlib() %{versmainlibdir}/%1\
812 %define versbiarchlib() %{nil}
814 %if !%{separate_biarch}
815 %define versmainlib() %{versmainlibdir}/%1\
816 %{versmainlibdirbi}/%1\
819 %define versbiarchlib() %{versmainlibdirbi}/%1\
828 %setup -q -n gcc-%{version}
831 # We are configuring ppc as ppc64 but with switched multilibs. Adjust
832 # the libstdc++ abi testsuite baseline files accordingly
834 if [ -d libstdc++-v3/config/abi/post/powerpc64-linux-gnu ]; then
835 mkdir -p libstdc++-v3/config/abi/post/powerpc64-linux-gnu/64
836 mv libstdc++-v3/config/abi/post/powerpc64-linux-gnu/baseline_symbols.txt \
837 libstdc++-v3/config/abi/post/powerpc64-linux-gnu/64/
838 mv libstdc++-v3/config/abi/post/powerpc64-linux-gnu/32/baseline_symbols.txt \
839 libstdc++-v3/config/abi/post/powerpc64-linux-gnu/
844 # Avoid rebuilding of generated files
845 contrib/gcc_update --touch
846 # Avoid fucking up testsuite results with Java and indirect dispatch
847 export LD_AS_NEEDED=0
848 # Split version file into version used for directories (X.Y) and
849 # version to report with --version (X.Y.Z).
850 # See also gcc-dir-version.patch.
851 # Also decrement the patchlevel version by one
852 if test `cat gcc/DEV-PHASE` == "prerelease"; then
853 ( cat gcc/BASE-VER | cut -d '.' -f 1-2 | tr -d '\n'; echo -n .; cat gcc/BASE-VER | cut -d '.' -f 3 | tr '0123456789' '0012345678' ) > gcc/FULL-VER
855 mv gcc/BASE-VER gcc/FULL-VER
857 cat gcc/FULL-VER | cut -d '.' -f 1-2 > gcc/BASE-VER
859 rm -rf obj-%{GCCDIST}
862 RPM_OPT_FLAGS="$RPM_OPT_FLAGS -U_FORTIFY_SOURCE"
863 RPM_OPT_FLAGS=`echo $RPM_OPT_FLAGS|sed -e 's/-fno-rtti//g' -e 's/-fno-exceptions//g' -e 's/-Wmissing-format-attribute//g' -e 's/-fstack-protector//g' -e 's/-ffortify=.//g' -e 's/-Wall//g' -e 's/-m32//g' -e 's/-m64//g'`
865 # -mcpu is superceded by -mtune but -mtune is not supported by
866 # our bootstrap compiler. -mcpu gives a warning that stops
867 # the build process, so remove it for now. Also remove all other
868 # -march and -mtune flags. They are superseeded by proper
869 # default compiler settings now.
870 RPM_OPT_FLAGS=`echo $RPM_OPT_FLAGS|sed -e 's/-mcpu=i.86//g' -e 's/-march=i.86//g' -e 's/-mtune=i.86//g'`
873 RPM_OPT_FLAGS=`echo $RPM_OPT_FLAGS|sed -e 's/-fsigned-char//g'`
874 RPM_OPT_FLAGS=`echo $RPM_OPT_FLAGS|sed -e 's/-O1/-O2/g'`
876 %if 0%{?gcc_target_arch:1} && 0%{!?gcc_icecream:1}
877 # Kill all -march/tune/cpu because that screws building the target libs
878 RPM_OPT_FLAGS=`echo $RPM_OPT_FLAGS|sed -e 's/-m\(arch\|tune\|cpu\)=[^ ]*//g'`
880 # Replace 2 spaces by one finally
881 RPM_OPT_FLAGS=`echo $RPM_OPT_FLAGS|sed -e 's/ / /g'`
885 languages=$languages,c++
888 languages=$languages,objc
891 languages=$languages,fortran
894 languages=$languages,obj-c++
897 languages=$languages,java
900 languages=$languages,ada
904 if test -z "$J"; then
905 J=$(getconf _NPROCESSORS_CONF)
908 test 1 -gt "$J" && J=1
909 JL=$(($(getconf _NPROCESSORS_CONF)*2))
911 if test "$J" == "0"; then
914 if test "$JL" == "0"; then
917 PARALLEL="-j$J -l$JL"
919 # we don't want some miscompiles in the testsuite, or some fault in
920 # the compiler to kill the machine. Hence we limit the amount of memory
921 # by the physical RAM plus half of swap
922 #MEM=$(free -m | awk '/^Mem:/ {print $2}')
923 #SWAP=$(free -m | awk '/^Swap:/ {print $2}')
924 #ulimit -v $(((MEM + SWAP/2)*1024))
926 # In general we want to ship release checking enabled compilers
927 # and run BETA with checking enabled.
928 #ENABLE_CHECKING="--enable-checking=yes"
929 ENABLE_CHECKING="--enable-checking=release"
931 # Work around tail/head -1 changes
932 export _POSIX2_VERSION=199209
934 # configure tries to parse include/features.h to detect
935 # if glibc supports SSP. When cross compiling we would need
936 # to install a cross glibc, which we don't, or make the whole
937 # thing point to the native glibc, which is in /, hence the
938 # --with-build-sysroot=/
941 # Using the host gnatmake like
942 # CC="gcc%{hostsuffix}" GNATBIND="gnatbind%{hostsuffix}"
943 # GNATMAKE="gnatmake%{hostsuffix}"
944 # doesn't work due to PR33857, so an un-suffixed gnatmake has to be
946 mkdir -p host-tools/bin
947 cp -a /usr/bin/gnatmake%{hostsuffix} host-tools/bin/gnatmake
948 cp -a /usr/bin/gnatlink%{hostsuffix} host-tools/bin/gnatlink
949 cp -a /usr/bin/gnatbind%{hostsuffix} host-tools/bin/gnatbind
950 cp -a /usr/bin/gcc%{hostsuffix} host-tools/bin/gcc
951 ln -sf /usr/%{_lib} host-tools/%{_lib}
952 export PATH="`pwd`/host-tools/bin:$PATH"
954 #%if 0%{?gcc_target_arch:1} && 0%{!?gcc_icecream:1}
956 # --enable-threads=posix \
959 %if "%{TARGET_ARCH}" == "armv7l" || "%{TARGET_ARCH}" == "armv7hl"
960 # temporary workaround for a miscompilation of hash functions in java code
961 GCJ_EXTRA_FLAGS="-marm"
963 CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS" XCFLAGS="$RPM_OPT_FLAGS" \
964 TCFLAGS="$RPM_OPT_FLAGS" GCJFLAGS="$RPM_OPT_FLAGS $GCJ_EXTRA_FLAGS" \
966 --prefix=%{_prefix} \
967 --infodir=%{_infodir} \
968 --mandir=%{_mandir} \
969 --libdir=%{_libdir} \
970 --libexecdir=%{_libdir} \
971 --disable-bootstrap \
972 --enable-languages=$languages \
974 --with-gxx-include-dir=%{_prefix}/include/c++/%{gcc_dir_version} \
978 --with-bugurl="http://bugs.tizen.org/" \
979 --with-pkgversion="Tizen" \
980 %if !%{build_fortran}
981 --disable-libquadmath \
983 %if !%{build_libjava}
986 --with-java-home=%{_libdir}/jvm/java-1.5.0-gcj%{binsuffix}-1.5.0.0/jre \
987 --with-ecj-jar=%{libsubdir}/ecj.jar \
989 %if !%{biarch_libjava}
990 --disable-libjava-multilib \
993 %if !%{build_with_mudflap}
994 --disable-libmudflap \
996 --with-slibdir=/%{_lib} \
998 --enable-__cxa_atexit \
999 --enable-libstdcxx-allocator=new \
1000 --disable-libstdcxx-pch \
1001 --enable-version-specific-runtime-libs \
1002 --enable-linker-build-id \
1003 %if 0%{?gcc_target_arch:1}
1004 %if 0%{?gcc_icecream:1}
1006 --with-gxx-include-dir=%{_prefix}/%{gcc_target_arch}%{?canonical_target_abi:%canonical_target_abi}/include/c++/%{gcc_dir_version} \
1007 --enable-linux-futex \
1009 %if 0%{?canonical_target:1}
1010 --with-build-time-tools=/usr/%{canonical_target}-tizen-linux%{?canonical_target_abi:%canonical_target_abi}/bin \
1013 --with-sysroot=%sysroot \
1015 %if 0%{?build_static:1}
1018 %if "%{TARGET_ARCH}" == "spu"
1019 --with-gxx-include-dir=%sysroot/include/c++/%{gcc_dir_version} \
1023 --target=%{CONFIGURE_TARGET} \
1025 --program-suffix=%{binsuffix} \
1026 --enable-linux-futex \
1028 --with-system-libunwind \
1030 --without-system-libunwind \
1033 %if "%{TARGET_ARCH}" == "armv5tel"
1034 --with-arch=armv5te \
1037 --with-abi=aapcs-linux \
1038 --disable-sjlj-exceptions \
1040 %if "%{TARGET_ARCH}" == "armv7l"
1041 --with-arch=armv7-a \
1042 --with-tune=cortex-a8 \
1043 --with-float=softfp \
1046 --disable-sjlj-exceptions \
1048 %if "%{TARGET_ARCH}" == "armv7hl"
1049 --with-arch=armv7-a \
1050 --with-tune=cortex-a9 \
1052 --with-abi=aapcs-linux \
1053 --with-fpu=vfpv3-d16 \
1054 --disable-sjlj-exceptions \
1056 %if "%{TARGET_ARCH}" == "powerpc" || "%{TARGET_ARCH}" == "powerpc64"
1057 %if "%{TARGET_ARCH}" == "powerpc"
1058 --with-cpu=default32 \
1060 --with-cpu-64=power4 \
1061 --enable-secureplt \
1062 --with-long-double-128 \
1064 %if "%{TARGET_ARCH}" == "sparc64"
1065 --with-cpu=ultrasparc \
1066 --with-long-double-128 \
1068 %if "%{TARGET_ARCH}" == "sparc"
1070 --with-long-double-128 \
1072 %if "%{TARGET_ARCH}" == "i586"
1073 --with-arch-32=i586 \
1074 --with-tune=generic \
1076 %if "%{TARGET_ARCH}" == "x86_64"
1077 --with-arch-32=i586 \
1078 --with-tune=generic \
1080 %if "%{TARGET_ARCH}" == "s390"
1081 --with-tune=z196 --with-arch=z10 \
1082 --with-long-double-128 \
1083 --enable-decimal-float \
1085 %if "%{TARGET_ARCH}" == "s390x"
1086 --with-tune=z196 --with-arch=z10 \
1087 --with-long-double-128 \
1088 --enable-decimal-float \
1094 %if 0%{?building_libffi:1}
1095 make stage1-bubble $PARALLEL
1096 make all-target-libffi $PARALLEL
1099 # Only run profiled bootstrap on archs where it works
1100 #%ifarch %ix86 x86_64 ppc ppc64 ia64
1101 #make profiledbootstrap-lean STAGE1_CFLAGS="$STAGE1_FLAGS" BOOT_CFLAGS="$RPM_OPT_FLAGS" $PARALLEL
1103 #make bootstrap-lean STAGE1_CFLAGS="$STAGE1_FLAGS" BOOT_CFLAGS="$RPM_OPT_FLAGS" $PARALLEL
1104 make STAGE1_CFLAGS="$STAGE1_FLAGS" BOOT_CFLAGS="$RPM_OPT_FLAGS" $PARALLEL
1108 %if 0%{?run_tests:1}
1109 echo "Run testsuite"
1110 (make -C %{GCCDIST}/libstdc++-v3 check-abi || true)
1111 mv %{GCCDIST}/libstdc++-v3/testsuite/libstdc++.log %{GCCDIST}/libstdc++-v3/testsuite/libstdc++-abi.log
1112 mv %{GCCDIST}/libstdc++-v3/testsuite/libstdc++.sum %{GCCDIST}/libstdc++-v3/testsuite/libstdc++-abi.sum
1113 # asan needs a whole shadow address space
1114 ulimit -v unlimited || true
1115 make -k check $PARALLEL || true
1116 mkdir ../testresults
1117 ../contrib/test_summary | tee ../testresults/test_summary.txt
1122 export NO_BRP_CHECK_BYTECODE_VERSION=true
1124 # GCC-TESTSUITE-DELETE-BEGIN
1125 # Work around tail/head -1 changes
1126 export _POSIX2_VERSION=199209
1127 export LIBRARY_PATH=$RPM_BUILD_ROOT%{libsubdir}:$RPM_BUILD_ROOT%{mainlibdirbi}
1128 %if 0%{?building_libffi:1}
1129 make -C %{GCCDIST}/libffi install DESTDIR=$RPM_BUILD_ROOT
1131 %if 0%{?building_libjava:1}
1132 make -C %{GCCDIST}/libjava install DESTDIR=$RPM_BUILD_ROOT
1133 make -C gcc java.install-man DESTDIR=$RPM_BUILD_ROOT
1134 make -C gcc java.install-common DESTDIR=$RPM_BUILD_ROOT
1135 make -C gcc install-common DESTDIR=$RPM_BUILD_ROOT COMPILERS='jc1$(exeext) jvgenmain$(exeext)'
1136 # install-common also installs collect2, gcov and the g++ and gfortran driver
1138 rm $RPM_BUILD_ROOT%{_prefix}/bin/g++%{binsuffix}
1140 %if %{build_fortran}
1141 rm $RPM_BUILD_ROOT%{_prefix}/bin/gfortran%{binsuffix}
1143 rm $RPM_BUILD_ROOT%{_prefix}/bin/gcov%{binsuffix}
1144 rm $RPM_BUILD_ROOT%{libsubdir}/collect2
1146 make install DESTDIR=$RPM_BUILD_ROOT
1148 make -C gcc java.uninstall DESTDIR=$RPM_BUILD_ROOT
1149 make -C gcc java.install-info DESTDIR=$RPM_BUILD_ROOT
1150 rm $RPM_BUILD_ROOT%{_prefix}/bin/jcf-dump%{binsuffix}
1151 rm $RPM_BUILD_ROOT%{_mandir}/man1/jcf-dump%{binsuffix}.1
1152 rm $RPM_BUILD_ROOT%{libsubdir}/jc1
1153 rm $RPM_BUILD_ROOT%{libsubdir}/jvgenmain
1158 # Remove libffi installed files if we did not want to build it
1159 %if !0%{?building_libffi:1}
1160 rm -f $RPM_BUILD_ROOT%{mainlibdir}/libffi.*
1162 rm -f $RPM_BUILD_ROOT%{mainlibdirbi}/libffi.*
1164 rm -f $RPM_BUILD_ROOT%{libsubdir}/include/ffi.h
1165 rm -f $RPM_BUILD_ROOT%{libsubdir}/include/ffitarget.h
1166 rm -f $RPM_BUILD_ROOT%{_mandir}/man3/ffi%{binsuffix}.3*
1167 rm -f $RPM_BUILD_ROOT%{_mandir}/man3/ffi_call%{binsuffix}.3*
1168 rm -f $RPM_BUILD_ROOT%{_mandir}/man3/ffi_prep_cif%{binsuffix}.3*
1169 rm -f $RPM_BUILD_ROOT%{_mandir}/man3/ffi_prep_cif_var%{binsuffix}.3*
1172 # Remove some useless .la files
1173 for lib in libobjc libgfortran libgfortranbegin libquadmath libcaf_single \
1174 libmudflap libmudflapth libgomp libstdc++ libsupc++ libgcj-tools libgij \
1175 libasan libatomic libitm libtsan; do
1176 rm -f $RPM_BUILD_ROOT%{versmainlibdir}/$lib.la
1178 rm -f $RPM_BUILD_ROOT%{versmainlibdirbi}/$lib.la
1182 mkdir -p $RPM_BUILD_ROOT%{_libdir}
1184 %if %{build_primary_64bit}
1185 mkdir -p $RPM_BUILD_ROOT%{_prefix}/lib
1187 mkdir -p $RPM_BUILD_ROOT%{_prefix}/lib64
1191 # LIBFFI-DELETE-BEGIN
1192 # LIBJAVA-DELETE-BEGIN
1194 # Merge multilib c++config.h to allow omitting the duplicate and
1195 # identical other arch specific headers
1197 cxxconfig="`find %{GCCDIST}/libstdc++-v3/include -name c++config.h`"
1198 for i in `find %{GCCDIST}/[36]*/libstdc++-v3/include -name c++config.h 2>/dev/null`; do
1199 if ! diff -up $cxxconfig $i; then
1214 if ! ( test -f "$file_32" && test -f "$file_64" ); then
1219 cat > $RPM_BUILD_ROOT%{_prefix}/include/c++/%{gcc_dir_version}/%{GCCDIST}/bits/c++config.h <<EOF
1220 #ifndef _CPP_CPPCONFIG_WRAPPER
1221 #define _CPP_CPPCONFIG_WRAPPER 1
1222 #include <bits/wordsize.h>
1223 #if __WORDSIZE == 32
1233 rm -rf $RPM_BUILD_ROOT%{_prefix}/include/c++/%{gcc_dir_version}/%{GCCDIST}/[36]*
1234 if ! test -z "$dir_ml"; then
1235 ln -s . $RPM_BUILD_ROOT%{_prefix}/include/c++/%{gcc_dir_version}/%{GCCDIST}/$dir_ml
1238 # LIBJAVA-DELETE-END
1240 # move shared libs from versionspecific dir to main libdir
1242 %if 0%{?building_libjava:1}
1243 libgcj libgij libgcj-tools \
1245 %if %{build_fortran}
1247 %ifarch %quadmath_arch
1258 %ifarch %atomic_arch
1270 %if %{build_with_mudflap}
1271 libmudflap libmudflapth \
1275 for lib in `find $RPM_BUILD_ROOT%{versmainlibdir} -maxdepth 1 -name $libname.so.*`; do
1276 mv $lib $RPM_BUILD_ROOT%{mainlibdir}/
1278 ln -sf %{mainlibdir}/`readlink $RPM_BUILD_ROOT%{versmainlibdir}/$libname.so | sed -e 's/\(.*\.so\.[^\.]*\).*/\1/'` \
1279 $RPM_BUILD_ROOT%{versmainlibdir}/$libname.so
1281 if test -d $RPM_BUILD_ROOT%{versmainlibdirbi}; then
1282 for lib in `find $RPM_BUILD_ROOT%{versmainlibdirbi} -maxdepth 1 -name "$libname.so.*"`; do
1283 mv $lib $RPM_BUILD_ROOT%{mainlibdirbi}/
1285 ln -sf %{mainlibdirbi}/`readlink $RPM_BUILD_ROOT%{versmainlibdirbi}/$libname.so | sed -e 's/\(.*\.so\.[^\.]*\).*/\1/'` \
1286 $RPM_BUILD_ROOT%{versmainlibdirbi}/$libname.so
1290 # FIXME, tsan is not multilib
1293 rm -f $RPM_BUILD_ROOT%{versmainlibdirbi}/libtsan.so
1297 %if !0%{?building_libjava:1}
1298 # And we want to move the shlib gdb pretty printers to a more sane
1299 # place so ldconfig does not complain
1300 mkdir -p $RPM_BUILD_ROOT%{_datadir}/gdb/auto-load%{mainlibdir}
1301 mv $RPM_BUILD_ROOT%{mainlibdir}/libstdc++.so.*-gdb.py $RPM_BUILD_ROOT%{_datadir}/gdb/auto-load%{mainlibdir}/
1302 sed -i -e '/^libdir/s/\/gcc\/%{GCCDIST}\/%{gcc_dir_version}//g' $RPM_BUILD_ROOT%{_datadir}/gdb/auto-load%{mainlibdir}/libstdc++.so.*-gdb.py
1304 if test -d $RPM_BUILD_ROOT%{versmainlibdirbi}; then
1305 mkdir -p $RPM_BUILD_ROOT%{_datadir}/gdb/auto-load%{mainlibdirbi}
1306 mv $RPM_BUILD_ROOT%{mainlibdirbi}/libstdc++.so.*-gdb.py $RPM_BUILD_ROOT%{_datadir}/gdb/auto-load%{mainlibdirbi}/
1307 sed -i -e '/^libdir/s/\/gcc\/%{GCCDIST}\/%{gcc_dir_version}//g' $RPM_BUILD_ROOT%{_datadir}/gdb/auto-load%{mainlibdirbi}/libstdc++.so.*-gdb.py
1312 %if 0%{?building_libjava:1}
1313 # libgcj_bc is special as the .so file is actually a different
1314 # library as the library refered to by the SONAME which should
1315 # be a simple link to our libgcj.
1316 for lib in `find $RPM_BUILD_ROOT%{versmainlibdir} -maxdepth 1 -name libgcj_bc.so.*`; do
1319 ln -s libgcj.so.%{libgcj_sover} $RPM_BUILD_ROOT%{mainlibdir}/libgcj_bc.so.%{libgcj_bc_sover}
1320 %if %{biarch_libjava}
1321 for lib in `find $RPM_BUILD_ROOT%{versmainlibdirbi} -maxdepth 1 -name libgcj_bc.so.*`; do
1324 ln -s libgcj.so.%{libgcj_sover} $RPM_BUILD_ROOT%{mainlibdirbi}/libgcj_bc.so.%{libgcj_bc_sover}
1328 # LIBJAVA-DELETE-BEGIN
1329 # Move libgcc_s around
1330 if test -L $RPM_BUILD_ROOT/%{_lib}/libgcc_s.so; then
1331 rm -f $RPM_BUILD_ROOT/%{_lib}/libgcc_s.so
1332 ln -sf /%{_lib}/libgcc_s.so.%{libgcc_s} $RPM_BUILD_ROOT%{versmainlibdir}/libgcc_s.so
1334 mv $RPM_BUILD_ROOT/%{_lib}/libgcc_s.so $RPM_BUILD_ROOT%{versmainlibdir}/
1336 chmod a+x $RPM_BUILD_ROOT/%{_lib}/libgcc_s.so.%{libgcc_s}
1338 %if %{build_primary_64bit}
1339 if test -L $RPM_BUILD_ROOT/lib/libgcc_s.so; then
1340 rm -f $RPM_BUILD_ROOT/lib/libgcc_s.so
1341 ln -sf /lib/libgcc_s.so.%{libgcc_s} $RPM_BUILD_ROOT%{versmainlibdirbi32}/libgcc_s.so
1343 mv $RPM_BUILD_ROOT/lib/libgcc_s.so $RPM_BUILD_ROOT%{versmainlibdirbi32}/
1345 ln -sf %{versmainlibdirbi32}/libgcc_s.so $RPM_BUILD_ROOT%{versmainlibdirbi32}/libgcc_s_32.so
1346 chmod a+x $RPM_BUILD_ROOT/lib/libgcc_s.so.%{libgcc_s}
1348 # 32-bit biarch systems
1349 if test -L $RPM_BUILD_ROOT/lib64/libgcc_s.so; then
1350 rm -f $RPM_BUILD_ROOT/lib64/libgcc_s.so
1351 ln -sf /lib64/libgcc_s.so.%{libgcc_s} $RPM_BUILD_ROOT%{versmainlibdirbi64}/libgcc_s.so
1353 mv $RPM_BUILD_ROOT/lib64/libgcc_s.so $RPM_BUILD_ROOT%{versmainlibdirbi64}/
1355 ln -sf %{versmainlibdirbi64}/libgcc_s.so $RPM_BUILD_ROOT%{versmainlibdirbi64}/libgcc_s_64.so
1356 chmod a+x $RPM_BUILD_ROOT/lib64/libgcc_s.so.%{libgcc_s}
1360 # LIBJAVA-DELETE-END
1364 mv $RPM_BUILD_ROOT%{libsubdir}/adalib/lib*-*.so $RPM_BUILD_ROOT%{_libdir}
1365 ln -sf %{_libdir}/libgnarl%{binsuffix}.so $RPM_BUILD_ROOT%{libsubdir}/adalib/libgnarl.so
1366 ln -sf %{_libdir}/libgnat%{binsuffix}.so $RPM_BUILD_ROOT%{libsubdir}/adalib/libgnat.so
1367 chmod a+x $RPM_BUILD_ROOT%{_libdir}/libgna*-*.so
1369 mv $RPM_BUILD_ROOT%{versmainlibdirbi}/adalib/lib*-*.so $RPM_BUILD_ROOT%{mainlibdirbi}/
1370 ln -sf %{mainlibdirbi}/libgnarl%{binsuffix}.so $RPM_BUILD_ROOT%{versmainlibdirbi}/adalib/libgnarl.so
1371 ln -sf %{mainlibdirbi}/libgnat%{binsuffix}.so $RPM_BUILD_ROOT%{versmainlibdirbi}/adalib/libgnarl.so
1372 chmod a+x $RPM_BUILD_ROOT%{mainlibdirbi}/libgna*-*.so
1376 rm -f $RPM_BUILD_ROOT%{_prefix}/bin/c++%{binsuffix}
1378 # Remove some crap from the .la files:
1379 for l in `find $RPM_BUILD_ROOT -name '*.la'`; do
1381 # -e '/^dependency_libs/s|%{libsubdir}/\([^.]*\)\.la |%{_libdir}/\1\.la |g'
1382 sed -e '/^dependency_libs/s| -L%{_builddir}/[^ ]*||g' \
1383 -e '/^dependency_libs/s| -L/usr/%{GCCDIST}/bin||g' \
1384 -e '/^dependency_libs/s|-lm \(-lm \)*|-lm |' \
1385 -e '/^dependency_libs/s|-L[^ ]* ||g' \
1387 %if %{build_primary_64bit}
1388 -e '/^libdir/s|%{_libdir}/32|%{_prefix}/lib|' \
1389 -e '/^libdir/s|lib64/\.\./||' \
1391 -e '/^libdir/s|%{_libdir}/64|%{_prefix}/lib64|' \
1398 # GCC-TESTSUITE-DELETE-END
1399 %if 0%{?run_tests:1}
1400 cp `find . -name "*.sum"` ../testresults/
1401 cp `find . -name "*.log" \! -name "config.log" | grep -v 'acats.\?/tests' ` ../testresults/
1402 chmod 644 ../testresults/*
1404 # GCC-TESTSUITE-DELETE-BEGIN
1405 # LIBFFI-DELETE-BEGIN
1407 # Find C++ and Java headers
1408 find $RPM_BUILD_ROOT%{_prefix}/include/c++ \
1409 -regex ".*/\(org\|gcj\|gnu\|java\|javax\)" -prune \
1410 -o \( -type d -printf "%%%%dir " , \
1411 -printf "%{_prefix}/include/c++/%%P\n" \) > ../c++-headers
1414 # Remove files that we do not need to clean up filelist
1415 rm -f $RPM_BUILD_ROOT%{_prefix}/bin/%{GCCDIST}-*
1416 rm -rf $RPM_BUILD_ROOT%{libsubdir}/install-tools
1417 #rm -rf $RPM_BUILD_ROOT%{_libdir}/pkgconfig/libgcj%{binsuffix}.pc
1418 rm -rf $RPM_BUILD_ROOT%{libsubdir}/include-fixed/root
1419 rm -f $RPM_BUILD_ROOT%{libsubdir}/include-fixed/curses.h
1420 rm -rf $RPM_BUILD_ROOT%{libsubdir}/include-fixed/asm-*
1421 rm -rf $RPM_BUILD_ROOT%{libsubdir}/include-fixed/linux
1422 rm -rf $RPM_BUILD_ROOT%{libsubdir}/include-fixed/sound
1423 rm -rf $RPM_BUILD_ROOT%{libsubdir}/include-fixed/features.h
1424 rm -f $RPM_BUILD_ROOT%{libsubdir}/include-fixed/ncurses.h
1425 rm -f $RPM_BUILD_ROOT%{libsubdir}/include-fixed/stdio.h
1426 rm -f $RPM_BUILD_ROOT%{libsubdir}/include-fixed/zutil.h
1427 rm -rf $RPM_BUILD_ROOT%{libsubdir}/include-fixed/X11
1428 rm -rf $RPM_BUILD_ROOT%{libsubdir}/include-fixed/bits
1429 rm -f $RPM_BUILD_ROOT%{libsubdir}/include-fixed/obstack.h
1430 rm -f $RPM_BUILD_ROOT%{libsubdir}/include-fixed/spe.h
1431 rm -f $RPM_BUILD_ROOT%{libsubdir}/include-fixed/tgmath.h
1432 rm -rf $RPM_BUILD_ROOT%{libsubdir}/include-fixed/bits
1433 rm -rf $RPM_BUILD_ROOT%{libsubdir}/include-fixed/sys
1435 rm -rf $RPM_BUILD_ROOT%{libsubdir}/plugin
1436 rm -f $RPM_BUILD_ROOT%{_infodir}/dir
1437 rm -f $RPM_BUILD_ROOT%{_prefix}/bin/gccbug%{binsuffix}
1439 %if !0%{?building_libjava:1}%{?building_libffi:1}
1440 # delete compile flag tracking from crt files
1441 crt_list=$RPM_BUILD_ROOT%{versmainlibdir}/crt*.o
1443 %if %{build_primary_64bit}
1444 crt32_list=$RPM_BUILD_ROOT%{versmainlibdirbi32}/crt*.o
1446 crt64_list=$RPM_BUILD_ROOT%{versmainlibdirbi64}/crt*.o
1449 for o in $crt_list $crt32_list $crt64_list; do
1450 objcopy -R ".comment.SUSE.OPTs" $o
1454 %if 0%{?building_libjava:1}
1455 # gcj -static doesn't work properly anyway, unless using --whole-archive
1456 # let's save the space instead.
1457 find $RPM_BUILD_ROOT -name libgcj.a \
1458 -o -name libgcj-tools.a \
1461 -o -name libgcj_bc.a \
1464 find $RPM_BUILD_ROOT -name libgcj.spec | xargs \
1465 sed -i -e 's/lib: /&%%{static:%%eJava programs cannot be linked statically}/'
1467 # security files have broken install locations, also they cause conflicts
1468 # between libgcj versions. Simply delete them here, libgcj will use its
1469 # defaults in this case (which is what these files contain anyway).
1470 rm $RPM_BUILD_ROOT%{_libdir}/logging.properties
1471 rm -r $RPM_BUILD_ROOT%{_libdir}/security
1474 %if 0%{?building_libffi:1}
1475 # Move libffi headers, remove empty libffi libtool file
1476 mkdir -p $RPM_BUILD_ROOT%{_prefix}/include
1477 mv $RPM_BUILD_ROOT%{libsubdir}/include/ffitarget.h $RPM_BUILD_ROOT%{_prefix}/include/
1478 mv $RPM_BUILD_ROOT%{libsubdir}/include/ffi.h $RPM_BUILD_ROOT%{_prefix}/include/
1479 rm -f $RPM_BUILD_ROOT%{mainlibdir}/libffi.la
1481 rm -f $RPM_BUILD_ROOT%{mainlibdirbi}/libffi.la
1483 # Generate a simple pkg-config file
1484 mkdir -p $RPM_BUILD_ROOT%{_libdir}/pkgconfig
1485 echo -e 'Name: libffi\nVersion: 3.0.9\nDescription: libffi\nLibs: -lffi' > $RPM_BUILD_ROOT%{_libdir}/pkgconfig/libffi.pc
1489 %if !%{build_libjava}
1490 rm $RPM_BUILD_ROOT%{_mandir}/man1/jv-convert%{binsuffix}.1
1491 rm $RPM_BUILD_ROOT%{_mandir}/man1/gcj-dbtool%{binsuffix}.1
1492 rm $RPM_BUILD_ROOT%{_mandir}/man1/gij%{binsuffix}.1
1493 rm $RPM_BUILD_ROOT%{_mandir}/man1/grmic%{binsuffix}.1
1494 rm $RPM_BUILD_ROOT%{_mandir}/man1/gc-analyze%{binsuffix}.1
1495 rm $RPM_BUILD_ROOT%{_mandir}/man1/aot-compile%{binsuffix}.1
1496 rm $RPM_BUILD_ROOT%{_mandir}/man1/rebuild-gcj-db%{binsuffix}.1
1498 rm -f $RPM_BUILD_ROOT%{_datadir}/gcc%{binsuffix}/python/libjava/aotcompile.py
1499 rm -f $RPM_BUILD_ROOT%{_datadir}/gcc%{binsuffix}/python/libjava/classfile.py
1501 rm -f $RPM_BUILD_ROOT%{_mandir}/man7/fsf-funding.7
1502 rm -f $RPM_BUILD_ROOT%{_mandir}/man7/gfdl.7
1503 rm -f $RPM_BUILD_ROOT%{_mandir}/man7/gpl.7
1504 rm -f $RPM_BUILD_ROOT%{_libdir}/libiberty.a
1506 %if %{build_primary_64bit}
1507 rm -f $RPM_BUILD_ROOT%{_prefix}/lib/libiberty.a
1509 rm -f $RPM_BUILD_ROOT%{_prefix}/lib64/libiberty.a
1512 rm -f $RPM_BUILD_ROOT%{libsubdir}/liblto_plugin.a
1513 rm -f $RPM_BUILD_ROOT%{libsubdir}/liblto_plugin.la
1515 # LIBFFI-DELETE-BEGIN
1516 %if 0%{?building_libjava:1}
1517 # For building libjava only we need to delete other info docs
1518 rm $RPM_BUILD_ROOT%{_infodir}/cp-tools.info*
1519 # Remove stale manpages for binaries we do not build
1520 rm $RPM_BUILD_ROOT%{_mandir}/man1/gjdoc%{binsuffix}.1
1521 # For building the java frontend we need to copy the ecj jar
1522 mkdir -p $RPM_BUILD_ROOT%{libsubdir}
1523 cp $RPM_SOURCE_DIR/ecj.jar $RPM_BUILD_ROOT%{libsubdir}
1525 # For regular build, some info files do not get renamed properly.
1527 mv $RPM_BUILD_ROOT%{_infodir}/libgomp.info $RPM_BUILD_ROOT%{_infodir}/libgomp%{binsuffix}.info
1529 mv $RPM_BUILD_ROOT%{_infodir}/libitm.info $RPM_BUILD_ROOT%{_infodir}/libitm%{binsuffix}.info
1531 %if %{build_fortran}
1532 %ifarch %quadmath_arch
1533 mv $RPM_BUILD_ROOT%{_infodir}/libquadmath.info $RPM_BUILD_ROOT%{_infodir}/libquadmath%{binsuffix}.info
1537 mv $RPM_BUILD_ROOT%{_infodir}/gnat-style.info $RPM_BUILD_ROOT%{_infodir}/gnat-style%{binsuffix}.info
1538 mv $RPM_BUILD_ROOT%{_infodir}/gnat_rm.info $RPM_BUILD_ROOT%{_infodir}/gnat_rm%{binsuffix}.info
1539 mv $RPM_BUILD_ROOT%{_infodir}/gnat_ugn.info $RPM_BUILD_ROOT%{_infodir}/gnat_ugn%{binsuffix}.info
1543 # LIBJAVA-DELETE-BEGIN
1545 %find_lang cpplib%{binsuffix}
1546 %find_lang gcc%{binsuffix}
1547 cat cpplib%{binsuffix}.lang gcc%{binsuffix}.lang > gcc@base_ver@-locale.lang
1551 %install_info --info-dir=%{_infodir} %{_infodir}/cpp%{binsuffix}.info.gz
1552 %install_info --info-dir=%{_infodir} %{_infodir}/cppinternals%{binsuffix}.info.gz
1553 %install_info --info-dir=%{_infodir} %{_infodir}/gcc%{binsuffix}.info.gz
1554 %install_info --info-dir=%{_infodir} %{_infodir}/gccint%{binsuffix}.info.gz
1555 %install_info --info-dir=%{_infodir} %{_infodir}/gccinstall%{binsuffix}.info.gz
1556 %install_info --info-dir=%{_infodir} %{_infodir}/libgomp%{binsuffix}.info.gz
1557 %if %{build_fortran}
1558 %install_info --info-dir=%{_infodir} %{_infodir}/gfortran%{binsuffix}.info.gz
1559 %ifarch %quadmath_arch
1560 %install_info --info-dir=%{_infodir} %{_infodir}/libquadmath%{binsuffix}.info.gz
1564 %install_info --info-dir=%{_infodir} %{_infodir}/gcj%{binsuffix}.info.gz
1567 %install_info --info-dir=%{_infodir} %{_infodir}/gnat-style%{binsuffix}.info.gz
1568 %install_info --info-dir=%{_infodir} %{_infodir}/gnat_rm%{binsuffix}.info.gz
1569 %install_info --info-dir=%{_infodir} %{_infodir}/gnat_ugn%{binsuffix}.info.gz
1573 %install_info_delete --info-dir=%{_infodir} %{_infodir}/cpp%{binsuffix}.info.gz
1574 %install_info_delete --info-dir=%{_infodir} %{_infodir}/cppinternals%{binsuffix}.info.gz
1575 %install_info_delete --info-dir=%{_infodir} %{_infodir}/gcc%{binsuffix}.info.gz
1576 %install_info_delete --info-dir=%{_infodir} %{_infodir}/gccint%{binsuffix}.info.gz
1577 %install_info_delete --info-dir=%{_infodir} %{_infodir}/gccinstall%{binsuffix}.info.gz
1578 %install_info_delete --info-dir=%{_infodir} %{_infodir}/libgomp%{binsuffix}.info.gz
1579 %if %{build_fortran}
1580 %install_info_delete --info-dir=%{_infodir} %{_infodir}/gfortran%{binsuffix}.info.gz
1581 %ifarch %quadmath_arch
1582 %install_info_delete --info-dir=%{_infodir} %{_infodir}/libquadmath%{binsuffix}.info.gz
1586 %install_info_delete --info-dir=%{_infodir} %{_infodir}/gcj%{binsuffix}.info.gz
1589 %install_info_delete --info-dir=%{_infodir} %{_infodir}/gnat-style%{binsuffix}.info.gz
1590 %install_info_delete --info-dir=%{_infodir} %{_infodir}/gnat_rm%{binsuffix}.info.gz
1591 %install_info_delete --info-dir=%{_infodir} %{_infodir}/gnat_ugn%{binsuffix}.info.gz
1595 %defattr(-,root,root)
1597 %dir %{_libdir}/gcc/%{GCCDIST}
1599 %dir %{libsubdir}/include
1600 %dir %{libsubdir}/include-fixed
1602 %if %{build_primary_64bit}
1603 %dir %{libsubdir}/32
1605 %dir %{libsubdir}/64
1608 %{_prefix}/bin/gcc%{binsuffix}
1609 %{_prefix}/bin/gcov%{binsuffix}
1610 %{_prefix}/bin/gcc-ar%{binsuffix}
1611 %{_prefix}/bin/gcc-nm%{binsuffix}
1612 %{_prefix}/bin/gcc-ranlib%{binsuffix}
1613 %{libsubdir}/collect2
1615 %{libsubdir}/lto-wrapper
1616 %{libsubdir}/liblto_plugin.so*
1617 %{libsubdir}/include-fixed/README
1618 %{libsubdir}/include-fixed/limits.h
1619 %{libsubdir}/include-fixed/syslimits.h
1620 %{libsubdir}/include/omp.h
1621 %{libsubdir}/include/float.h
1622 %{libsubdir}/include/iso646.h
1623 %{libsubdir}/include/stdarg.h
1624 %{libsubdir}/include/stdbool.h
1625 %{libsubdir}/include/stdfix.h
1626 %{libsubdir}/include/stddef.h
1627 %{libsubdir}/include/unwind.h
1628 %{libsubdir}/include/varargs.h
1629 %{libsubdir}/include/stdint.h
1630 %{libsubdir}/include/stdint-gcc.h
1631 %{libsubdir}/include/stdnoreturn.h
1632 %{libsubdir}/include/stdalign.h
1634 %{libsubdir}/include/visintrin.h
1637 %{libsubdir}/include/altivec.h
1638 %{libsubdir}/include/ppc-asm.h
1639 %{libsubdir}/include/paired.h
1640 %{libsubdir}/include/ppu_intrinsics.h
1641 %{libsubdir}/include/si2vmx.h
1642 %{libsubdir}/include/spe.h
1643 %{libsubdir}/include/spu2vmx.h
1644 %{libsubdir}/include/vec_types.h
1647 %{libsubdir}/include/ia64intrin.h
1650 %{libsubdir}/include/arm_neon.h
1653 %{libsubdir}/include/mmintrin.h
1654 %{libsubdir}/include/arm_neon.h
1655 %{libsubdir}/include/unwind-arm-common.h
1657 %ifarch %ix86 x86_64
1658 %{libsubdir}/include/cross-stdarg.h
1659 %{libsubdir}/include/cpuid.h
1660 %{libsubdir}/include/mm3dnow.h
1661 %{libsubdir}/include/mmintrin.h
1662 %{libsubdir}/include/ammintrin.h
1663 %{libsubdir}/include/bmmintrin.h
1664 %{libsubdir}/include/emmintrin.h
1665 %{libsubdir}/include/immintrin.h
1666 %{libsubdir}/include/avxintrin.h
1667 %{libsubdir}/include/pmmintrin.h
1668 %{libsubdir}/include/xmmintrin.h
1669 %{libsubdir}/include/tmmintrin.h
1670 %{libsubdir}/include/nmmintrin.h
1671 %{libsubdir}/include/smmintrin.h
1672 %{libsubdir}/include/wmmintrin.h
1673 %{libsubdir}/include/x86intrin.h
1674 %{libsubdir}/include/ia32intrin.h
1675 %{libsubdir}/include/mm_malloc.h
1676 %{libsubdir}/include/fma4intrin.h
1677 %{libsubdir}/include/xopintrin.h
1678 %{libsubdir}/include/lwpintrin.h
1679 %{libsubdir}/include/popcntintrin.h
1680 %{libsubdir}/include/bmiintrin.h
1681 %{libsubdir}/include/tbmintrin.h
1682 %{libsubdir}/include/avx2intrin.h
1683 %{libsubdir}/include/bmi2intrin.h
1684 %{libsubdir}/include/fmaintrin.h
1685 %{libsubdir}/include/lzcntintrin.h
1686 %{libsubdir}/include/f16cintrin.h
1687 %{libsubdir}/include/adxintrin.h
1688 %{libsubdir}/include/fxsrintrin.h
1689 %{libsubdir}/include/prfchwintrin.h
1690 %{libsubdir}/include/rdseedintrin.h
1691 %{libsubdir}/include/rtmintrin.h
1692 %{libsubdir}/include/xsaveintrin.h
1693 %{libsubdir}/include/xsaveoptintrin.h
1694 %{libsubdir}/include/xtestintrin.h
1696 %if %{build_with_mudflap}
1697 %{libsubdir}/include/mf-runtime.h
1699 %versmainlib *crt*.o
1700 %versmainlib libgcc*.a
1701 %versmainlib libgcov.a
1702 %versmainlib libgcc_s*.so
1703 %if %{build_with_mudflap}
1704 %versmainlib libmudflap.a
1705 %versmainlib libmudflap.so
1706 %versmainlib libmudflapth.a
1707 %versmainlib libmudflapth.so
1709 %versmainlib libgomp.so
1710 %versmainlib libgomp.a
1711 %versmainlib libgomp.spec
1713 %versmainlib libitm.so
1714 %versmainlib libitm.a
1715 %versmainlib libitm.spec
1717 %ifarch %atomic_arch
1718 %versmainlib libatomic.so
1719 %versmainlib libatomic.a
1722 %versmainlib libasan.so
1723 %versmainlib libasan.a
1724 %versmainlib libasan_preinit.o
1727 %versmainlib libtsan.so
1728 %versmainlib libtsan.a
1730 %doc %{_mandir}/man1/gcc%{binsuffix}.1.gz
1731 %doc %{_mandir}/man1/gcov%{binsuffix}.1.gz
1733 %if %{separate_biarch}
1734 %files -n gcc@base_ver@%{separate_biarch_suffix}
1735 %defattr(-,root,root)
1736 %versbiarchlib *crt*.o
1737 %versbiarchlib libgcc*.a
1738 %versbiarchlib libgcov.a
1739 %versbiarchlib libgcc_s*.so
1740 %if %{build_with_mudflap}
1741 %versbiarchlib libmudflap.a
1742 %versbiarchlib libmudflap.so
1743 %versbiarchlib libmudflapth.a
1744 %versbiarchlib libmudflapth.so
1746 %versbiarchlib libgomp.so
1747 %versbiarchlib libgomp.a
1748 %versbiarchlib libgomp.spec
1750 %versbiarchlib libitm.so
1751 %versbiarchlib libitm.a
1752 %versbiarchlib libitm.spec
1754 %ifarch %atomic_arch
1755 %versbiarchlib libatomic.a
1756 %versbiarchlib libatomic.so
1759 %versbiarchlib libasan.a
1760 %versbiarchlib libasan.so
1761 %versbiarchlib libasan_preinit.o
1765 %versbiarchlib libtsan.a
1766 %versbiarchlib libtsan.so
1771 %files locale -f gcc@base_ver@-locale.lang
1773 %files -n libstdc++%{libstdcxx_sover}%{libstdcxx_suffix}-locale
1777 %defattr(-,root,root)
1779 %dir %{_libdir}/gcc/%{GCCDIST}
1781 %{_prefix}/bin/g++%{binsuffix}
1782 %doc %{_mandir}/man1/g++%{binsuffix}.1.gz
1783 %{libsubdir}/cc1plus
1785 %files -n libstdc++%{libstdcxx_sover}%{libstdcxx_suffix}
1786 %defattr(-,root,root)
1787 %mainlib libstdc++.so.%{libstdcxx_sover}*
1789 %if %{separate_biarch}
1790 %files -n libstdc++%{libstdcxx_sover}%{libstdcxx_suffix}%{separate_biarch_suffix}
1791 %defattr(-,root,root)
1792 %biarchlib libstdc++.so.%{libstdcxx_sover}*
1795 %files -n libstdc++@base_ver@-devel -f c++-headers
1796 %defattr(-,root,root)
1797 %versmainlib libstdc++.a
1798 %versmainlib libstdc++.so
1799 %versmainlib libsupc++.a
1800 %dir %{_datadir}/gdb
1801 %dir %{_datadir}/gdb/auto-load
1802 %dir %{_datadir}/gdb/auto-load%{_prefix}
1803 %dir %{_datadir}/gdb/auto-load/%{mainlibdir}
1804 %{_datadir}/gdb/auto-load/%{mainlibdir}/libstdc++.so.*-gdb.py
1805 %{_datadir}/gcc%{binsuffix}
1807 %if %{separate_biarch}
1808 %files -n libstdc++@base_ver@-devel%{separate_biarch_suffix}
1809 %defattr(-,root,root)
1810 %versbiarchlib libstdc++.a
1811 %versbiarchlib libstdc++.so
1812 %versbiarchlib libsupc++.a
1813 %dir %{_datadir}/gdb/auto-load/%{mainlibdirbi}
1814 %{_datadir}/gdb/auto-load/%{mainlibdirbi}/libstdc++.so.*-gdb.py
1817 %files -n libstdc++@base_ver@-doc
1818 %defattr(-,root,root)
1819 %doc libstdc++-v3/doc/html
1822 %files -n libgcc_s%{libgcc_s}%{libgcc_s_suffix}
1823 %defattr(-,root,root)
1824 /%{_lib}/libgcc_s.so.%{libgcc_s}
1826 %if %{build_primary_64bit}
1827 %if !%{separate_bi32}
1828 /lib/libgcc_s.so.%{libgcc_s}
1831 %if !%{separate_bi64}
1832 /lib64/libgcc_s.so.%{libgcc_s}
1837 %if %{separate_bi64}
1838 %files -n libgcc_s%{libgcc_s}%{libgcc_s_suffix}-64bit
1839 %defattr(-,root,root)
1840 /lib64/libgcc_s.so.%{libgcc_s}
1843 %if %{separate_bi32}
1844 %files -n libgcc_s%{libgcc_s}%{libgcc_s_suffix}-32bit
1845 %defattr(-,root,root)
1846 /lib/libgcc_s.so.%{libgcc_s}
1850 %files -n libgomp%{libgomp_sover}%{libgomp_suffix}
1851 %defattr(-,root,root)
1852 %mainlib libgomp.so.%{libgomp_sover}*
1854 %if %{separate_biarch}
1855 %files -n libgomp%{libgomp_sover}%{libgomp_suffix}%{separate_biarch_suffix}
1856 %defattr(-,root,root)
1857 %biarchlib libgomp.so.%{libgomp_sover}*
1862 %files -n libasan%{libasan_sover}%{libasan_suffix}
1863 %defattr(-,root,root)
1864 %mainlib libasan.so.%{libasan_sover}*
1866 %if %{separate_biarch}
1867 %files -n libasan%{libasan_sover}%{libasan_suffix}%{separate_biarch_suffix}
1868 %defattr(-,root,root)
1869 %biarchlib libasan.so.%{libasan_sover}*
1875 %files -n libtsan%{libtsan_sover}%{libtsan_suffix}
1876 %defattr(-,root,root)
1877 %mainlib libtsan.so.%{libtsan_sover}*
1880 %if %{separate_biarch}
1881 %files -n libtsan%{libtsan_sover}%{libtsan_suffix}%{separate_biarch_suffix}
1882 %defattr(-,root,root)
1883 %biarchlib libtsan.so.%{libtsan_sover}*
1889 %ifarch %atomic_arch
1890 %files -n libatomic%{libatomic_sover}%{libatomic_suffix}
1891 %defattr(-,root,root)
1892 %mainlib libatomic.so.%{libatomic_sover}*
1894 %if %{separate_biarch}
1895 %files -n libatomic%{libatomic_sover}%{libatomic_suffix}%{separate_biarch_suffix}
1896 %defattr(-,root,root)
1897 %biarchlib libatomic.so.%{libatomic_sover}*
1903 %files -n libitm%{libitm_sover}%{libitm_suffix}
1904 %defattr(-,root,root)
1905 %mainlib libitm.so.%{libitm_sover}*
1907 %if %{separate_biarch}
1908 %files -n libitm%{libitm_sover}%{libitm_suffix}%{separate_biarch_suffix}
1909 %defattr(-,root,root)
1910 %biarchlib libitm.so.%{libitm_sover}*
1916 %if %{build_fortran}
1918 %defattr(-,root,root)
1919 %dir %{libsubdir}/finclude
1920 %{_prefix}/bin/gfortran%{binsuffix}
1922 %{libsubdir}/finclude/*
1923 %versmainlib libgfortran.a
1924 %versmainlib libgfortran.so
1925 %versmainlib libgfortran.spec
1926 %versmainlib libgfortranbegin.a
1927 %versmainlib libcaf_single.a
1928 %ifarch %quadmath_arch
1929 %{libsubdir}/include/quadmath.h
1930 %{libsubdir}/include/quadmath_weak.h
1931 %versmainlib libquadmath.a
1932 %versmainlib libquadmath.so
1934 %doc %{_mandir}/man1/gfortran%{binsuffix}.1.gz
1936 %if %{separate_biarch}
1937 %files fortran%{separate_biarch_suffix}
1938 %defattr(-,root,root)
1939 %versbiarchlib libgfortran.a
1940 %versbiarchlib libgfortran.so
1941 %versbiarchlib libgfortran.spec
1942 %versbiarchlib libgfortranbegin.a
1943 %versbiarchlib libcaf_single.a
1944 %ifarch %quadmath_arch
1945 %versbiarchlib libquadmath.a
1946 %versbiarchlib libquadmath.so
1950 %files -n libgfortran%{libgfortran_sover}%{libgfortran_suffix}
1951 %defattr(-,root,root)
1952 %mainlib libgfortran.so.%{libgfortran_sover}*
1954 %if %{separate_biarch}
1955 %files -n libgfortran%{libgfortran_sover}%{libgfortran_suffix}%{separate_biarch_suffix}
1956 %defattr(-,root,root)
1957 %biarchlib libgfortran.so.%{libgfortran_sover}*
1960 %ifarch %quadmath_arch
1961 %files -n libquadmath%{libquadmath_sover}%{libquadmath_suffix}
1962 %defattr(-,root,root)
1963 %mainlib libquadmath.so.%{libquadmath_sover}*
1965 %if %{separate_biarch}
1966 %files -n libquadmath%{libquadmath_sover}%{libquadmath_suffix}%{separate_biarch_suffix}
1967 %defattr(-,root,root)
1968 %biarchlib libquadmath.so.%{libquadmath_sover}*
1973 %if %{build_with_mudflap}
1974 %files -n libmudflap@base_ver@
1975 %defattr(-,root,root)
1976 %mainlib libmudflap.so.%{libmudflap_sover}*
1977 %mainlib libmudflapth.so.%{libmudflap_sover}*
1979 %if %{separate_biarch}
1980 %files -n libmudflap@base_ver@%{separate_biarch_suffix}
1981 %defattr(-,root,root)
1982 %biarchlib libmudflap.so.%{libmudflap_sover}*
1983 %biarchlib libmudflapth.so.%{libmudflap_sover}*
1988 %defattr(-,root,root)
1989 %doc %{_infodir}/*.gz
1991 %files -n cpp@base_ver@
1992 %defattr(-,root,root)
1994 %dir %{_libdir}/gcc/%{GCCDIST}
1996 %{_prefix}/bin/cpp%{binsuffix}
1999 %doc %{_mandir}/man1/cpp%{binsuffix}.1.gz
2003 %defattr(-,root,root)
2005 %{libsubdir}/include/objc
2006 %versmainlib libobjc.a
2007 %versmainlib libobjc.so
2009 %if %{separate_biarch}
2010 %files objc%{separate_biarch_suffix}
2011 %defattr(-,root,root)
2012 %versbiarchlib libobjc.a
2013 %versbiarchlib libobjc.so
2016 %files -n libobjc%{libobjc_sover}%{libobjc_suffix}
2017 %defattr(-,root,root)
2018 %mainlib libobjc.so.%{libobjc_sover}*
2020 %if %{separate_biarch}
2021 %files -n libobjc%{libobjc_sover}%{libobjc_suffix}%{separate_biarch_suffix}
2022 %defattr(-,root,root)
2023 %biarchlib libobjc.so.%{libobjc_sover}*
2030 %defattr(-,root,root)
2031 %{libsubdir}/cc1objplus
2037 %defattr(-,root,root)
2039 %dir %{_libdir}/gcc/%{GCCDIST}
2041 %{_prefix}/bin/gnat*
2042 %dir %{versmainlibdir}/adainclude
2043 %dir %{versmainlibdir}/adalib
2044 %{versmainlibdir}/adainclude
2045 %{versmainlibdir}/adalib/*.ali
2046 %{versmainlibdir}/adalib/*.a
2047 %{versmainlibdir}/adalib/libgnarl.so
2048 %{versmainlibdir}/adalib/libgnat.so
2049 %{versmainlibdir}/gnat1
2051 %if %{separate_biarch}
2052 %files ada%{separate_biarch_suffix}
2053 %defattr(-,root,root)
2054 %dir %{versmainlibdirbi}/adainclude
2055 %dir %{versmainlibdirbi}/adalib
2056 %{versmainlibdirbi}/adainclude
2057 %{versmainlibdirbi}/adalib/*.ali
2058 %{versmainlibdirbi}/adalib/*.a
2059 %{versmainlibdirbi}/adalib/libgnarl.so
2060 %{versmainlibdirbi}/adalib/libgnat.so
2063 %files -n libada@base_ver@
2064 %defattr(-,root,root)
2065 %mainlib libgnarl-*.so
2066 %mainlib libgnat-*.so
2068 %if %{separate_biarch}
2069 %files -n libada@base_ver@%{separate_biarch_suffix}
2070 %defattr(-,root,root)
2071 %biarchlib libgnarl-*.so
2072 %biarchlib libgnat-*.so
2075 # LIBJAVA-DELETE-END
2079 %if 0%{?building_libjava:1}
2080 %files -n gcc@base_ver@-java
2081 %defattr(-,root,root)
2082 %{_prefix}/bin/gcj%{binsuffix}
2083 %{_prefix}/bin/gcjh%{binsuffix}
2084 %{_prefix}/bin/gcj-dbtool%{binsuffix}
2085 %{_prefix}/bin/jcf-dump%{binsuffix}
2086 %{_prefix}/bin/jv-convert%{binsuffix}
2087 %{_prefix}/bin/gc-analyze%{binsuffix}
2088 %{_prefix}/bin/aot-compile%{binsuffix}
2089 %{_prefix}/bin/rebuild-gcj-db%{binsuffix}
2091 %{libsubdir}/jvgenmain
2092 %{libsubdir}/ecj.jar
2094 %doc %{_mandir}/man1/gcj%{binsuffix}.1.gz
2095 %doc %{_mandir}/man1/gcjh%{binsuffix}.1.gz
2096 %doc %{_mandir}/man1/gcj-dbtool%{binsuffix}.1.gz
2097 %doc %{_mandir}/man1/jcf-dump%{binsuffix}.1.gz
2098 %doc %{_mandir}/man1/jv-convert%{binsuffix}.1.gz
2099 %doc %{_mandir}/man1/gc-analyze%{binsuffix}.1.gz
2100 %doc %{_mandir}/man1/aot-compile%{binsuffix}.1.gz
2101 %doc %{_mandir}/man1/rebuild-gcj-db%{binsuffix}.1.gz
2106 %if %{build_libjava}
2107 %files -n libgcj@base_ver@
2108 %defattr(-,root,root)
2109 %dir %{_libdir}/gcj-%{gcc_dir_version}-%{libgcj_sover}
2111 %dir %{_libdir}/gcc/%{GCCDIST}
2113 %{_libdir}/gcj-%{gcc_dir_version}-%{libgcj_sover}/classmap.db
2114 # We usually do not multilib libjava
2115 %if %{biarch_libjava}
2116 %versbiarchlib libgcj.la
2117 %biarchlib libgcj.so.*
2118 %biarchlib libgij.so.*
2119 %biarchlib libgcj-tools.so.*
2121 %versmainlib libgcj.la
2122 %mainlib libgcj.so.*
2123 %mainlib libgij.so.*
2124 %mainlib libgcj-tools.so.*
2126 %{_libdir}/gcj-%{gcc_dir_version}-%{libgcj_sover}/libjvm.la
2127 %{_libdir}/gcj-%{gcc_dir_version}-%{libgcj_sover}/libjvm.so
2128 %{_libdir}/gcj-%{gcc_dir_version}-%{libgcj_sover}/libjavamath.la
2129 %{_libdir}/gcj-%{gcc_dir_version}-%{libgcj_sover}/libjavamath.so
2131 %files -n libgcj_bc%{libgcj_bc_sover}%{libgcj_bc_suffix}
2132 %defattr(-,root,root)
2133 %if %{biarch_libjava}
2134 %biarchlib libgcj_bc.so.%{libgcj_bc_sover}*
2136 %mainlib libgcj_bc.so.%{libgcj_bc_sover}*
2139 %files -n libgcj@base_ver@-jar
2140 %defattr(-,root,root)
2141 %{_prefix}/share/java/libgcj-%{gcc_dir_version}.jar
2142 %{_prefix}/share/java/libgcj-tools-%{gcc_dir_version}.jar
2144 %files -n libgcj@base_ver@-devel
2145 %defattr(-,root,root)
2146 %dir %{_prefix}/include/c++
2148 %dir %{libsubdir}/include
2150 %{_libdir}/pkgconfig/libgcj%{binsuffix}.pc
2151 %{libsubdir}/include/jawt.h
2152 %{libsubdir}/include/jawt_md.h
2153 %{libsubdir}/include/jni.h
2154 %{libsubdir}/include/jni_md.h
2155 %{libsubdir}/include/jvmpi.h
2162 %{libsubdir}/include/gcj
2163 %if %{biarch_libjava}
2164 %versbiarchlib libgcj.so
2165 %versbiarchlib libgcj.spec
2166 %versbiarchlib libgcj-tools.so
2167 %versbiarchlib libgij.so
2168 %versbiarchlib libgcj_bc.so
2170 %versmainlib libgcj.so
2171 %versmainlib libgcj.spec
2172 %versmainlib libgcj-tools.so
2173 %versmainlib libgij.so
2174 %versmainlib libgcj_bc.so
2177 %files -n gcc@base_ver@-gij
2178 %defattr(-,root,root)
2179 %{_prefix}/bin/gij%{binsuffix}
2180 %{_prefix}/bin/gappletviewer%{binsuffix}
2181 %{_prefix}/bin/gjar%{binsuffix}
2182 %{_prefix}/bin/gjarsigner%{binsuffix}
2183 %{_prefix}/bin/gjavah%{binsuffix}
2184 %{_prefix}/bin/gkeytool%{binsuffix}
2185 %{_prefix}/bin/gnative2ascii%{binsuffix}
2186 %{_prefix}/bin/gorbd%{binsuffix}
2187 %{_prefix}/bin/grmic%{binsuffix}
2188 %{_prefix}/bin/grmid%{binsuffix}
2189 %{_prefix}/bin/grmiregistry%{binsuffix}
2190 %{_prefix}/bin/gserialver%{binsuffix}
2191 %{_prefix}/bin/gtnameserv%{binsuffix}
2192 %doc %{_mandir}/man1/gij%{binsuffix}.1.gz
2193 %doc %{_mandir}/man1/gappletviewer%{binsuffix}.1.gz
2194 %doc %{_mandir}/man1/grmic%{binsuffix}.1.gz
2195 %doc %{_mandir}/man1/grmid%{binsuffix}.1.gz
2196 %doc %{_mandir}/man1/grmiregistry%{binsuffix}.1.gz
2197 %doc %{_mandir}/man1/gkeytool%{binsuffix}.1.gz
2198 %doc %{_mandir}/man1/gjar%{binsuffix}.1.gz
2199 %doc %{_mandir}/man1/gjarsigner%{binsuffix}.1.gz
2200 %doc %{_mandir}/man1/gjavah%{binsuffix}.1.gz
2201 %doc %{_mandir}/man1/gnative2ascii%{binsuffix}.1.gz
2202 %doc %{_mandir}/man1/gorbd%{binsuffix}.1.gz
2203 %doc %{_mandir}/man1/gserialver%{binsuffix}.1.gz
2204 %doc %{_mandir}/man1/gtnameserv%{binsuffix}.1.gz
2210 %if 0%{?building_libffi:1}
2211 %files -n libffi%{libffi_sover}%{libffi_suffix}
2212 %defattr(-,root,root)
2213 %mainlib libffi.so.%{libffi_sover}*
2215 %if %{separate_biarch}
2216 %files -n libffi%{libffi_sover}%{libffi_suffix}%{separate_biarch_suffix}
2217 %defattr(-,root,root)
2218 %biarchlib libffi.so.%{libffi_sover}*
2221 %post -n libffi@base_ver@-devel
2222 %install_info --info-dir=%{_infodir} %{_infodir}/libffi%{binsuffix}.info.gz
2223 %postun -n libffi@base_ver@-devel
2224 %install_info_delete --info-dir=%{_infodir} %{_infodir}/libffi%{binsuffix}.info.gz
2226 %files -n libffi@base_ver@-devel
2227 %defattr(-,root,root)
2228 %{_prefix}/include/ffi.h
2229 %{_prefix}/include/ffitarget.h
2232 %{_libdir}/pkgconfig/libffi.pc
2233 %doc %{_infodir}/libffi%{binsuffix}.info.gz
2234 %doc %{_mandir}/man3/ffi%{binsuffix}.3.gz
2235 %doc %{_mandir}/man3/ffi_call%{binsuffix}.3.gz
2236 %doc %{_mandir}/man3/ffi_prep_cif%{binsuffix}.3.gz
2237 %doc %{_mandir}/man3/ffi_prep_cif_var%{binsuffix}.3.gz
2239 %if %{separate_biarch}
2240 %files -n libffi@base_ver@-devel%{separate_biarch_suffix}
2241 %defattr(-,root,root)
2242 %biarchlib libffi.so
2247 # GCC-TESTSUITE-DELETE-END
2249 %if 0%{?run_tests:1}
2250 %files -n gcc@base_ver@-testresults
2251 %defattr(-,root,root)
2252 %doc testresults/test_summary.txt
2253 %doc testresults/*.sum
2254 %doc testresults/*.log