SHA256
7
0
forked from pool/gcc13

35 Commits

Author SHA256 Message Date
b0f0d01f4f Accepting request 1290114 from devel:gcc
- Tune for power10 for SLES 16.  [jsc#PED-12029]
- Tune for z15 for SLES 16.  [jsc#PED-253]

OBS-URL: https://build.opensuse.org/request/show/1290114
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/gcc13?expand=0&rev=37
2025-07-06 15:06:11 +00:00
004424c6c3 - Tune for power10 for SLES 16. [jsc#PED-12029]
- Tune for z15 for SLES 16.  [jsc#PED-253]

OBS-URL: https://build.opensuse.org/package/show/devel:gcc/gcc13?expand=0&rev=144
2025-07-03 07:26:32 +00:00
afac32a7c0 Accepting request 1283431 from devel:gcc
- Update to GCC 13.4 release
  * collects regression fixes from the last year
- Remove hppa icecream backend to avoid conflicts with the
  hppa bootstrap compiler

- Re-enable AutoReqProv for cross packages but filter files processed
  via __requires_exclude_from and __provides_exclude_from.
  [boo#1219031]
- Exclude shared objects present for link editing in the GCC specific
  subdirectory from provides processing via __provides_exclude_from.
  [bsc#1244050][bsc#1243991]

- Make cross-*-gcc13-bootstrap package conflict with the non-bootstrap
  variant conflict with the unversioned cross-*-gcc package.

- Update to gcc-13 branch head, ec78a0d9962f144b13c6da3ebe, git9730
  * GCC 13.4 RC2
  * Includes gcc13-bsc1216664.patch

OBS-URL: https://build.opensuse.org/request/show/1283431
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/gcc13?expand=0&rev=36
2025-06-11 14:20:53 +00:00
60306b8b83 - Remove hppa icecream backend to avoid conflicts with the
hppa bootstrap compiler

OBS-URL: https://build.opensuse.org/package/show/devel:gcc/gcc13?expand=0&rev=142
2025-06-05 17:28:01 +00:00
46cafbd33b - Update to GCC 13.4 release
* collects regression fixes from the last year

OBS-URL: https://build.opensuse.org/package/show/devel:gcc/gcc13?expand=0&rev=141
2025-06-05 17:11:56 +00:00
444e8ae674 OBS-URL: https://build.opensuse.org/package/show/devel:gcc/gcc13?expand=0&rev=140 2025-06-05 11:52:21 +00:00
f5f9765ee4 - Re-enable AutoReqProv for cross packages but filter files processed
via __requires_exclude_from and __provides_exclude_from.
  [boo#1219031]
- Exclude shared objects present for link editing in the GCC specific
  subdirectory from provides processing via __provides_exclude_from.
  [bsc#1244050][bsc#1243991]

OBS-URL: https://build.opensuse.org/package/show/devel:gcc/gcc13?expand=0&rev=139
2025-06-04 12:33:25 +00:00
e3e8f6c669 - Make cross-*-gcc13-bootstrap package conflict with the non-bootstrap
variant conflict with the unversioned cross-*-gcc package.

OBS-URL: https://build.opensuse.org/package/show/devel:gcc/gcc13?expand=0&rev=138
2025-06-03 12:43:15 +00:00
39ecd72620 - Update to gcc-13 branch head, ec78a0d9962f144b13c6da3ebe, git9730
* GCC 13.4 RC2

OBS-URL: https://build.opensuse.org/package/show/devel:gcc/gcc13?expand=0&rev=137
2025-05-30 13:51:58 +00:00
3d7542c78e * Add gcc13-pr119834.patch to fix s390x bug
OBS-URL: https://build.opensuse.org/package/show/devel:gcc/gcc13?expand=0&rev=136
2025-05-30 10:22:42 +00:00
a7d4e1f5d1 - Update to gcc-13 branch head, 03ae1212a94a8800f0dbc6a3df, git9727
* GCC 13.4 RC
  * Includes gcc13-bsc1216664.patch

OBS-URL: https://build.opensuse.org/package/show/devel:gcc/gcc13?expand=0&rev=135
2025-05-30 08:40:13 +00:00
a47a6c7ae2 Accepting request 1271908 from devel:gcc
- Fix s390x build by using a glob for installed libgcc_s.so and
  libgcc_s.so.1 which only appears when the former is a linker
  script.  [bsc#1241549]

OBS-URL: https://build.opensuse.org/request/show/1271908
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/gcc13?expand=0&rev=35
2025-04-22 20:14:32 +00:00
c1072c9162 - Fix s390x build by using a glob for installed libgcc_s.so and
libgcc_s.so.1 which only appears when the former is a linker
  script.  [bsc#1241549]

OBS-URL: https://build.opensuse.org/package/show/devel:gcc/gcc13?expand=0&rev=133
2025-04-22 14:33:55 +00:00
ce539afe45 Accepting request 1267910 from devel:gcc
- Make sure link editing is done against our own shared library
  copy rather than the installed system runtime.  [bsc#1240788]

  in ppc64le (jsc#PED-7395).

OBS-URL: https://build.opensuse.org/request/show/1267910
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/gcc13?expand=0&rev=34
2025-04-09 19:49:54 +00:00
e00e0065fb - Make sure link editing is done against our own shared library
copy rather than the installed system runtime.  [bsc#1240788]

OBS-URL: https://build.opensuse.org/package/show/devel:gcc/gcc13?expand=0&rev=131
2025-04-08 12:53:21 +00:00
9d8059d6b9 in ppc64le (jsc#PED-7395).
OBS-URL: https://build.opensuse.org/package/show/devel:gcc/gcc13?expand=0&rev=130
2025-04-03 08:18:42 +00:00
eeb7cfc5e7 Accepting request 1264976 from devel:gcc
- Replace gcc13-rs6000-Adjust-fpatchable-function-entry.patch with
  a backport of the now upstream -msplit-patch-nops in
  gcc13-rs6000-msplit-patch-nops.patch requried for user-space
  livepatching on powerpc.

OBS-URL: https://build.opensuse.org/request/show/1264976
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/gcc13?expand=0&rev=33
2025-03-31 09:39:35 +00:00
643e897094 - Replace gcc13-rs6000-Adjust-fpatchable-function-entry.patch with
a backport of the now upstream -msplit-patch-nops in
  gcc13-rs6000-msplit-patch-nops.patch requried for user-space
  livepatching on powerpc.

OBS-URL: https://build.opensuse.org/package/show/devel:gcc/gcc13?expand=0&rev=128
2025-03-27 12:45:42 +00:00
7c0c085f9d Accepting request 1253649 from devel:gcc
- Update to gcc-13 branch head, 4ef1d8c84faeebffeb0cc01ee2, git9426
- Remove gcc13-pr116657.patch now present on the branch.
- Remove gcc13-pr118780.patch now present on the branch.
- Add gcc13-bsc1239566.patch to also record -D_FORTIFY_SOURCE=2
  in the DWARF debug info DW_AT_producer string.  [bsc#1239566]

- Disable profiling during build when %want_reproducible_builds is set
  [bsc#1238491]

OBS-URL: https://build.opensuse.org/request/show/1253649
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/gcc13?expand=0&rev=32
2025-03-17 21:18:28 +00:00
f5df47ead9 OBS-URL: https://build.opensuse.org/package/show/devel:gcc/gcc13?expand=0&rev=126 2025-03-13 13:40:24 +00:00
7a46c00ae7 - Add gcc13-bsc1239566.patch to also record -D_FORTIFY_SOURCE=2
in the DWARF debug info DW_AT_producer string.  [bsc#1239566]

OBS-URL: https://build.opensuse.org/package/show/devel:gcc/gcc13?expand=0&rev=125
2025-03-13 13:39:25 +00:00
41c4caba77 - Update to gcc-13 branch head, 4ef1d8c84faeebffeb0cc01ee2, git9426
- Remove gcc13-pr116657.patch now present on the branch.
- Remove gcc13-pr118780.patch now present on the branch.

OBS-URL: https://build.opensuse.org/package/show/devel:gcc/gcc13?expand=0&rev=124
2025-03-13 08:40:55 +00:00
4f1ae734f8 - Disable profiling during build when %want_reproducible_builds is set
[bsc#1238491]

OBS-URL: https://build.opensuse.org/package/show/devel:gcc/gcc13?expand=0&rev=123
2025-03-10 13:27:20 +00:00
43ff13a9f9 Accepting request 1245121 from devel:gcc
- Fix condition on whether to enable plugins or JIT support to
  not check sle_version which is not defined in SLFO but to check
  is_opensuse and suse_version instead.
- Add gcc13-pr118780.patch to make the SLFO config work.

OBS-URL: https://build.opensuse.org/request/show/1245121
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/gcc13?expand=0&rev=31
2025-02-11 20:31:27 +00:00
4cd5e7d48b - Add gcc13-pr118780.patch to make the SLFO config work.
OBS-URL: https://build.opensuse.org/package/show/devel:gcc/gcc13?expand=0&rev=121
2025-02-10 09:34:33 +00:00
4381218556 - Add gcc14-pr118780.patch to make the SLFO config work.
OBS-URL: https://build.opensuse.org/package/show/devel:gcc/gcc13?expand=0&rev=120
2025-02-07 15:09:07 +00:00
ddffb6afc2 OBS-URL: https://build.opensuse.org/package/show/devel:gcc/gcc13?expand=0&rev=119 2025-02-07 13:04:15 +00:00
27c5657f8d is_opensuse and suse_version instead.
OBS-URL: https://build.opensuse.org/package/show/devel:gcc/gcc13?expand=0&rev=118
2025-02-07 09:32:38 +00:00
8cc2efe84a - Fix condition on whether to enable plugins or JIT support to
not check sle_version which is not defined in SLFO but to check
  is_opensuse instead.

OBS-URL: https://build.opensuse.org/package/show/devel:gcc/gcc13?expand=0&rev=117
2025-02-06 10:26:15 +00:00
39d8753a82 Accepting request 1216955 from devel:gcc
- Remove epiphany build, newlib no longer builds for it. 

- Add gcc13-pr116657.patch to fix for parsing tzdata 2024b [gcc#116657]

OBS-URL: https://build.opensuse.org/request/show/1216955
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/gcc13?expand=0&rev=30
2024-10-22 12:53:30 +00:00
fa6b0aea9c - Remove epiphany build, newlib no longer builds for it.
OBS-URL: https://build.opensuse.org/package/show/devel:gcc/gcc13?expand=0&rev=115
2024-10-22 08:07:37 +00:00
3b68b0eb13 - Add gcc13-pr116657.patch to fix for parsing tzdata 2024b [gcc#116657]
OBS-URL: https://build.opensuse.org/package/show/devel:gcc/gcc13?expand=0&rev=114
2024-10-16 13:39:17 +00:00
c420d54861 Accepting request 1192633 from devel:gcc
- Update to gcc-13 branch head, 9d368828bd4d04ce507e02a581, git8964 
  * includes fix for samba build with glibc 2.40

- Add gcc13-rs6000-Adjust-fpatchable-function-entry.patch to fix
  the incorrect NOPs layout when -fpatchable-function-enry is passed
  in ppc64le.

OBS-URL: https://build.opensuse.org/request/show/1192633
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/gcc13?expand=0&rev=29
2024-08-09 14:13:55 +00:00
63a48184dc - Update to gcc-13 branch head, 9d368828bd4d04ce507e02a581, git8964
* includes fix for samba build with glibc 2.40

OBS-URL: https://build.opensuse.org/package/show/devel:gcc/gcc13?expand=0&rev=112
2024-08-07 11:13:33 +00:00
59c9df8ab3 - Add gcc13-rs6000-Adjust-fpatchable-function-entry.patch to fix
the incorrect NOPs layout when -fpatchable-function-enry is passed
  in ppc64le.

OBS-URL: https://build.opensuse.org/package/show/devel:gcc/gcc13?expand=0&rev=111
2024-08-05 09:10:07 +00:00
36 changed files with 4674 additions and 669 deletions

View File

@@ -14,7 +14,11 @@
<flavor>cross-pru-gcc13-bootstrap</flavor> <flavor>cross-pru-gcc13-bootstrap</flavor>
<flavor>cross-pru-gcc13</flavor> <flavor>cross-pru-gcc13</flavor>
<flavor>cross-x86_64-gcc13</flavor> <flavor>cross-x86_64-gcc13</flavor>
<flavor>cross-sparc-gcc13</flavor>
<flavor>cross-sparc64-gcc13</flavor>
<flavor>cross-ppc64-gcc13</flavor> <flavor>cross-ppc64-gcc13</flavor>
<flavor>cross-m68k-gcc13</flavor>
<flavor>cross-mips-gcc13</flavor>
<flavor>cross-hppa-gcc13-bootstrap</flavor> <flavor>cross-hppa-gcc13-bootstrap</flavor>
<flavor>cross-arm-none-gcc13-bootstrap</flavor> <flavor>cross-arm-none-gcc13-bootstrap</flavor>
<flavor>cross-arm-none-gcc13</flavor> <flavor>cross-arm-none-gcc13</flavor>

View File

@@ -87,16 +87,10 @@ add_newlib_cross() {
} }
add_glibc_cross() { add_glibc_cross() {
add_cross $1-bootstrap $2 $3 "%define gcc_target_glibc 1 add_cross $1-bootstrap $2 $3 "%define gcc_libc_bootstrap 1"
%define gcc_libc_bootstrap 1"
add_cross $1 $2 $3 "%define gcc_target_glibc 1" add_cross $1 $2 $3 "%define gcc_target_glibc 1"
} }
add_glibc_bootstrap_cross() {
add_cross $1 $2 $3 "%define gcc_target_glibc 1
%define gcc_libc_bootstrap 1"
}
# We now support "proper" cross-compilers to suse targets via a # We now support "proper" cross-compilers to suse targets via a
# cross-glibc package, enable that via for example # cross-glibc package, enable that via for example
# #
@@ -108,16 +102,16 @@ add_glibc_cross cross-aarch64-gcc$base_ver aarch64 aarch64-suse-linux
add_glibc_cross cross-riscv64-gcc$base_ver riscv64 riscv64-suse-linux add_glibc_cross cross-riscv64-gcc$base_ver riscv64 riscv64-suse-linux
add_glibc_cross cross-s390x-gcc$base_ver s390x s390x-suse-linux add_glibc_cross cross-s390x-gcc$base_ver s390x s390x-suse-linux
add_glibc_cross cross-ppc64le-gcc$base_ver ppc64le powerpc64le-suse-linux add_glibc_cross cross-ppc64le-gcc$base_ver ppc64le powerpc64le-suse-linux
add_glibc_bootstrap_cross cross-arm-gcc$base_ver arm arm-suse-linux-gnueabi add_cross cross-arm-gcc$base_ver arm arm-suse-linux-gnueabi %define gcc_icecream 1
add_cross cross-avr-gcc$base_ver-bootstrap avr avr "%define gcc_libc_bootstrap 1" add_cross cross-avr-gcc$base_ver-bootstrap avr avr "%define gcc_libc_bootstrap 1"
add_cross cross-avr-gcc$base_ver avr avr add_cross cross-avr-gcc$base_ver avr avr
add_newlib_cross cross-pru-gcc$base_ver pru pru add_newlib_cross cross-pru-gcc$base_ver pru pru
add_glibc_bootstrap_cross cross-x86_64-gcc$base_ver x86_64 x86_64-suse-linux add_cross cross-x86_64-gcc$base_ver x86_64 x86_64-suse-linux %define gcc_icecream 1
#add_cross cross-sparc-gcc$base_ver sparcv9 sparc-suse-linux %define gcc_icecream 1 add_cross cross-sparc-gcc$base_ver sparcv9 sparc-suse-linux %define gcc_icecream 1
#add_cross cross-sparc64-gcc$base_ver sparc64 sparc64-suse-linux %define gcc_icecream 1 add_cross cross-sparc64-gcc$base_ver sparc64 sparc64-suse-linux %define gcc_icecream 1
add_glibc_bootstrap_cross cross-ppc64-gcc$base_ver ppc64 powerpc64-suse-linux add_cross cross-ppc64-gcc$base_ver ppc64 powerpc64-suse-linux %define gcc_icecream 1
#add_cross cross-m68k-gcc$base_ver m68k m68k-suse-linux %define gcc_icecream 1 add_cross cross-m68k-gcc$base_ver m68k m68k-suse-linux %define gcc_icecream 1
#add_cross cross-mips-gcc$base_ver mips mips-suse-linux %define gcc_icecream 1 add_cross cross-mips-gcc$base_ver mips mips-suse-linux %define gcc_icecream 1
add_cross cross-hppa-gcc$base_ver-bootstrap hppa hppa-suse-linux %define gcc_libc_bootstrap 1 add_cross cross-hppa-gcc$base_ver-bootstrap hppa hppa-suse-linux %define gcc_libc_bootstrap 1
add_newlib_cross cross-arm-none-gcc$base_ver arm-none arm-none-eabi add_newlib_cross cross-arm-none-gcc$base_ver arm-none arm-none-eabi
#add_newlib_cross cross-epiphany-gcc$base_ver epiphany epiphany-elf #add_newlib_cross cross-epiphany-gcc$base_ver epiphany epiphany-elf

View File

@@ -19,7 +19,6 @@
%define pkgname cross-aarch64-gcc13-bootstrap %define pkgname cross-aarch64-gcc13-bootstrap
%define cross_arch aarch64 %define cross_arch aarch64
%define gcc_target_arch aarch64-suse-linux %define gcc_target_arch aarch64-suse-linux
%define gcc_target_glibc 1
%define gcc_libc_bootstrap 1 %define gcc_libc_bootstrap 1
# nospeccleaner # nospeccleaner
@@ -293,24 +292,26 @@ ExclusiveArch: i586 ppc64le ppc64 x86_64 s390x riscv64
%if "%pkgname" == "cross-ppc64-gcc49" %if "%pkgname" == "cross-ppc64-gcc49"
Obsoletes: cross-ppc-gcc49 <= 4.9.0+r209354 Obsoletes: cross-ppc-gcc49 <= 4.9.0+r209354
%endif %endif
%if 0%{!?gcc_accel:1} %if 0%{?gcc_target_newlib:1}%{?gcc_target_glibc:1} || "%{cross_arch}" == "avr"
# Generally only one cross for the same target triplet can be installed # Generally only one cross for the same target triplet can be installed
# at the same time as we are populating a non-version-specific sysroot # at the same time as we are populating a non-version-specific sysroot
Provides: %{gcc_target_arch}-gcc
Conflicts: %selfconflict %{gcc_target_arch}-gcc
%endif
%if 0%{?gcc_libc_bootstrap:1}
# The -bootstrap packages file-conflict with the non-bootstrap variants. # The -bootstrap packages file-conflict with the non-bootstrap variants.
# Even if we don't actually (want to) distribute the bootstrap variants # Even if we don't actually (want to) distribute the bootstrap variants
# the following avoids repo-checker spamming us endlessly. # the following avoids repo-checker spamming us endlessly.
Provides: %{gcc_target_arch}-gcc
Conflicts: %{gcc_target_arch}-gcc Conflicts: %{gcc_target_arch}-gcc
Conflicts: %{pkgname}-bootstrap
%endif %endif
#!BuildIgnore: gcc-PIE #!BuildIgnore: gcc-PIE
%if %{build_cp} %if 0%{build_cp:1}
# The cross compiler only packages the arch specific c++ headers, so # The cross compiler only packages the arch specific c++ headers, so
# we need to depend on the host libstdc++ devel headers (we wouldn't need # we need to depend on the host libstdc++ devel headers (we wouldn't need
# the libs, though) # the libs, though)
Requires: libstdc++6-devel-gcc13 Requires: libstdc++6-devel-gcc13
%endif %endif
%if 0%{!?gcc_accel:1} && %{suse_version} < 1600 %if 0%{!?gcc_accel:1}
BuildRequires: update-alternatives BuildRequires: update-alternatives
Requires(post): update-alternatives Requires(post): update-alternatives
Requires(preun): update-alternatives Requires(preun): update-alternatives
@@ -586,11 +587,11 @@ amdgcn-amdhsa,\
--enable-gnu-indirect-function \ --enable-gnu-indirect-function \
%endif %endif
%endif %endif
--program-suffix=%{binsuffix} \
%ifarch %{disable_multilib_arch} %ifarch %{disable_multilib_arch}
--disable-multilib \ --disable-multilib \
%endif %endif
%if 0%{!?gcc_target_arch:1} %if 0%{!?gcc_target_arch:1}
--program-suffix=%{binsuffix} \
%ifarch ia64 %ifarch ia64
--with-system-libunwind \ --with-system-libunwind \
%else %else
@@ -598,9 +599,6 @@ amdgcn-amdhsa,\
%endif %endif
%endif %endif
%if 0%{?gcc_target_arch:1} %if 0%{?gcc_target_arch:1}
%if 0%{?gcc_accel:1} || %{suse_version} < 1600
--program-suffix=%{binsuffix} \
%endif
--program-prefix=%{gcc_target_arch}- \ --program-prefix=%{gcc_target_arch}- \
--target=%{gcc_target_arch} \ --target=%{gcc_target_arch} \
--disable-nls \ --disable-nls \
@@ -863,7 +861,7 @@ rm -f $RPM_BUILD_ROOT%{_libdir}/libiberty.a
mkdir -p $RPM_BUILD_ROOT/%{?sysroot:%sysroot} mkdir -p $RPM_BUILD_ROOT/%{?sysroot:%sysroot}
make DESTDIR=$RPM_BUILD_ROOT install-target make DESTDIR=$RPM_BUILD_ROOT install-target
%if %{build_cp} %if %{build_cp}
# So we installed libstdc++ headers into %%prefix where they conflict # So we installed libstdc++ headers into %prefix where they conflict
# with other host compilers. Rip out the non-target specific parts # with other host compilers. Rip out the non-target specific parts
# again. Note not all cross targets support libstdc++, so create the # again. Note not all cross targets support libstdc++, so create the
# directory to make things easier. # directory to make things easier.
@@ -888,7 +886,6 @@ rm -rf $RPM_BUILD_ROOT%{_infodir}
# for accelerators remove all frontends but lto1 and also install-tools # for accelerators remove all frontends but lto1 and also install-tools
%if 0%{?gcc_accel:1} %if 0%{?gcc_accel:1}
rm -f $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch}/cc1 rm -f $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch}/cc1
rm -f $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch}/f951
rm -f $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch}/cc1plus rm -f $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch}/cc1plus
rm -rf $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch}/install-tools rm -rf $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch}/install-tools
rm -rf $RPM_BUILD_ROOT%{targetlibsubdir}/install-tools rm -rf $RPM_BUILD_ROOT%{targetlibsubdir}/install-tools
@@ -896,8 +893,6 @@ rm -rf $RPM_BUILD_ROOT%{targetlibsubdir}/install-tools
# that is the place where we later search for (only) # that is the place where we later search for (only)
( cd $RPM_BUILD_ROOT%{targetlibsubdir} && tar cf - . ) | ( cd $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch} && tar xf - ) ( cd $RPM_BUILD_ROOT%{targetlibsubdir} && tar cf - . ) | ( cd $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch} && tar xf - )
rm -rf $RPM_BUILD_ROOT%{targetlibsubdir} rm -rf $RPM_BUILD_ROOT%{targetlibsubdir}
# also remove installed libstdc++ headers
rm -rf $RPM_BUILD_ROOT%{_prefix}/include/c++
%endif %endif
# for amdgcn install the symlinks to the llvm tools # for amdgcn install the symlinks to the llvm tools
# follow alternatives symlinks to the hardcoded version requirement # follow alternatives symlinks to the hardcoded version requirement
@@ -962,7 +957,7 @@ rm -r env
# we provide update-alternatives for selecting a compiler version for # we provide update-alternatives for selecting a compiler version for
# crosses # crosses
%if 0%{!?gcc_accel:1} && %{suse_version} < 1600 %if 0%{!?gcc_accel:1}
mkdir -p %{buildroot}%{_sysconfdir}/alternatives mkdir -p %{buildroot}%{_sysconfdir}/alternatives
for ex in gcc cpp \ for ex in gcc cpp \
%if %{build_cp} %if %{build_cp}
@@ -1018,19 +1013,15 @@ fi
%endif %endif
%else %else
%{_prefix}/bin/%{gcc_target_arch}-gcc%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcc%{binsuffix}
%if %{suse_version} < 1600
%{_prefix}/bin/%{gcc_target_arch}-cpp%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-cpp%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-gcc-ar%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcc-ar%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-gcc-nm%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcc-nm%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-gcc-ranlib%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcc-ranlib%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-lto-dump%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-lto-dump%{binsuffix}
%endif
%if 0%{!?gcc_libc_bootstrap:1} && "%{cross_arch}" != "bpf" %if 0%{!?gcc_libc_bootstrap:1} && "%{cross_arch}" != "bpf"
%if %{suse_version} < 1600
%{_prefix}/bin/%{gcc_target_arch}-gcov%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcov%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-gcov-dump%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcov-dump%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-gcov-tool%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcov-tool%{binsuffix}
%endif
%{_prefix}/bin/%{gcc_target_arch}-gcov %{_prefix}/bin/%{gcc_target_arch}-gcov
%{_prefix}/bin/%{gcc_target_arch}-gcov-dump %{_prefix}/bin/%{gcc_target_arch}-gcov-dump
%{_prefix}/bin/%{gcc_target_arch}-gcov-tool %{_prefix}/bin/%{gcc_target_arch}-gcov-tool
@@ -1041,7 +1032,6 @@ fi
%{_prefix}/bin/%{gcc_target_arch}-gcc-nm %{_prefix}/bin/%{gcc_target_arch}-gcc-nm
%{_prefix}/bin/%{gcc_target_arch}-gcc-ranlib %{_prefix}/bin/%{gcc_target_arch}-gcc-ranlib
%{_prefix}/bin/%{gcc_target_arch}-lto-dump %{_prefix}/bin/%{gcc_target_arch}-lto-dump
%if %{suse_version} < 1600
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-cpp %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-cpp
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc-ar %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc-ar
@@ -1053,16 +1043,13 @@ fi
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcov-dump %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcov-dump
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcov-tool %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcov-tool
%endif %endif
%endif
%if %{build_cp} %if %{build_cp}
%{_prefix}/bin/%{gcc_target_arch}-c++
%{_prefix}/bin/%{gcc_target_arch}-g++
%if %{suse_version} < 1600
%{_prefix}/bin/%{gcc_target_arch}-c++%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-c++%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-g++%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-g++%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-c++
%{_prefix}/bin/%{gcc_target_arch}-g++
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-c++ %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-c++
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-g++ %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-g++
%endif
%if 0%{!?gcc_libc_bootstrap:1} %if 0%{!?gcc_libc_bootstrap:1}
%if "%{cross_arch}" == "avr" || 0%{?gcc_target_newlib:1} || 0%{?gcc_target_glibc:1} %if "%{cross_arch}" == "avr" || 0%{?gcc_target_newlib:1} || 0%{?gcc_target_glibc:1}
%{_prefix}/include/c++ %{_prefix}/include/c++

View File

@@ -292,24 +292,26 @@ ExclusiveArch: i586 ppc64le ppc64 x86_64 s390x riscv64
%if "%pkgname" == "cross-ppc64-gcc49" %if "%pkgname" == "cross-ppc64-gcc49"
Obsoletes: cross-ppc-gcc49 <= 4.9.0+r209354 Obsoletes: cross-ppc-gcc49 <= 4.9.0+r209354
%endif %endif
%if 0%{!?gcc_accel:1} %if 0%{?gcc_target_newlib:1}%{?gcc_target_glibc:1} || "%{cross_arch}" == "avr"
# Generally only one cross for the same target triplet can be installed # Generally only one cross for the same target triplet can be installed
# at the same time as we are populating a non-version-specific sysroot # at the same time as we are populating a non-version-specific sysroot
Provides: %{gcc_target_arch}-gcc
Conflicts: %selfconflict %{gcc_target_arch}-gcc
%endif
%if 0%{?gcc_libc_bootstrap:1}
# The -bootstrap packages file-conflict with the non-bootstrap variants. # The -bootstrap packages file-conflict with the non-bootstrap variants.
# Even if we don't actually (want to) distribute the bootstrap variants # Even if we don't actually (want to) distribute the bootstrap variants
# the following avoids repo-checker spamming us endlessly. # the following avoids repo-checker spamming us endlessly.
Provides: %{gcc_target_arch}-gcc
Conflicts: %{gcc_target_arch}-gcc Conflicts: %{gcc_target_arch}-gcc
Conflicts: %{pkgname}-bootstrap
%endif %endif
#!BuildIgnore: gcc-PIE #!BuildIgnore: gcc-PIE
%if %{build_cp} %if 0%{build_cp:1}
# The cross compiler only packages the arch specific c++ headers, so # The cross compiler only packages the arch specific c++ headers, so
# we need to depend on the host libstdc++ devel headers (we wouldn't need # we need to depend on the host libstdc++ devel headers (we wouldn't need
# the libs, though) # the libs, though)
Requires: libstdc++6-devel-gcc13 Requires: libstdc++6-devel-gcc13
%endif %endif
%if 0%{!?gcc_accel:1} && %{suse_version} < 1600 %if 0%{!?gcc_accel:1}
BuildRequires: update-alternatives BuildRequires: update-alternatives
Requires(post): update-alternatives Requires(post): update-alternatives
Requires(preun): update-alternatives Requires(preun): update-alternatives
@@ -585,11 +587,11 @@ amdgcn-amdhsa,\
--enable-gnu-indirect-function \ --enable-gnu-indirect-function \
%endif %endif
%endif %endif
--program-suffix=%{binsuffix} \
%ifarch %{disable_multilib_arch} %ifarch %{disable_multilib_arch}
--disable-multilib \ --disable-multilib \
%endif %endif
%if 0%{!?gcc_target_arch:1} %if 0%{!?gcc_target_arch:1}
--program-suffix=%{binsuffix} \
%ifarch ia64 %ifarch ia64
--with-system-libunwind \ --with-system-libunwind \
%else %else
@@ -597,9 +599,6 @@ amdgcn-amdhsa,\
%endif %endif
%endif %endif
%if 0%{?gcc_target_arch:1} %if 0%{?gcc_target_arch:1}
%if 0%{?gcc_accel:1} || %{suse_version} < 1600
--program-suffix=%{binsuffix} \
%endif
--program-prefix=%{gcc_target_arch}- \ --program-prefix=%{gcc_target_arch}- \
--target=%{gcc_target_arch} \ --target=%{gcc_target_arch} \
--disable-nls \ --disable-nls \
@@ -862,7 +861,7 @@ rm -f $RPM_BUILD_ROOT%{_libdir}/libiberty.a
mkdir -p $RPM_BUILD_ROOT/%{?sysroot:%sysroot} mkdir -p $RPM_BUILD_ROOT/%{?sysroot:%sysroot}
make DESTDIR=$RPM_BUILD_ROOT install-target make DESTDIR=$RPM_BUILD_ROOT install-target
%if %{build_cp} %if %{build_cp}
# So we installed libstdc++ headers into %%prefix where they conflict # So we installed libstdc++ headers into %prefix where they conflict
# with other host compilers. Rip out the non-target specific parts # with other host compilers. Rip out the non-target specific parts
# again. Note not all cross targets support libstdc++, so create the # again. Note not all cross targets support libstdc++, so create the
# directory to make things easier. # directory to make things easier.
@@ -887,7 +886,6 @@ rm -rf $RPM_BUILD_ROOT%{_infodir}
# for accelerators remove all frontends but lto1 and also install-tools # for accelerators remove all frontends but lto1 and also install-tools
%if 0%{?gcc_accel:1} %if 0%{?gcc_accel:1}
rm -f $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch}/cc1 rm -f $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch}/cc1
rm -f $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch}/f951
rm -f $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch}/cc1plus rm -f $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch}/cc1plus
rm -rf $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch}/install-tools rm -rf $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch}/install-tools
rm -rf $RPM_BUILD_ROOT%{targetlibsubdir}/install-tools rm -rf $RPM_BUILD_ROOT%{targetlibsubdir}/install-tools
@@ -895,8 +893,6 @@ rm -rf $RPM_BUILD_ROOT%{targetlibsubdir}/install-tools
# that is the place where we later search for (only) # that is the place where we later search for (only)
( cd $RPM_BUILD_ROOT%{targetlibsubdir} && tar cf - . ) | ( cd $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch} && tar xf - ) ( cd $RPM_BUILD_ROOT%{targetlibsubdir} && tar cf - . ) | ( cd $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch} && tar xf - )
rm -rf $RPM_BUILD_ROOT%{targetlibsubdir} rm -rf $RPM_BUILD_ROOT%{targetlibsubdir}
# also remove installed libstdc++ headers
rm -rf $RPM_BUILD_ROOT%{_prefix}/include/c++
%endif %endif
# for amdgcn install the symlinks to the llvm tools # for amdgcn install the symlinks to the llvm tools
# follow alternatives symlinks to the hardcoded version requirement # follow alternatives symlinks to the hardcoded version requirement
@@ -961,7 +957,7 @@ rm -r env
# we provide update-alternatives for selecting a compiler version for # we provide update-alternatives for selecting a compiler version for
# crosses # crosses
%if 0%{!?gcc_accel:1} && %{suse_version} < 1600 %if 0%{!?gcc_accel:1}
mkdir -p %{buildroot}%{_sysconfdir}/alternatives mkdir -p %{buildroot}%{_sysconfdir}/alternatives
for ex in gcc cpp \ for ex in gcc cpp \
%if %{build_cp} %if %{build_cp}
@@ -1017,19 +1013,15 @@ fi
%endif %endif
%else %else
%{_prefix}/bin/%{gcc_target_arch}-gcc%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcc%{binsuffix}
%if %{suse_version} < 1600
%{_prefix}/bin/%{gcc_target_arch}-cpp%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-cpp%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-gcc-ar%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcc-ar%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-gcc-nm%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcc-nm%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-gcc-ranlib%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcc-ranlib%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-lto-dump%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-lto-dump%{binsuffix}
%endif
%if 0%{!?gcc_libc_bootstrap:1} && "%{cross_arch}" != "bpf" %if 0%{!?gcc_libc_bootstrap:1} && "%{cross_arch}" != "bpf"
%if %{suse_version} < 1600
%{_prefix}/bin/%{gcc_target_arch}-gcov%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcov%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-gcov-dump%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcov-dump%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-gcov-tool%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcov-tool%{binsuffix}
%endif
%{_prefix}/bin/%{gcc_target_arch}-gcov %{_prefix}/bin/%{gcc_target_arch}-gcov
%{_prefix}/bin/%{gcc_target_arch}-gcov-dump %{_prefix}/bin/%{gcc_target_arch}-gcov-dump
%{_prefix}/bin/%{gcc_target_arch}-gcov-tool %{_prefix}/bin/%{gcc_target_arch}-gcov-tool
@@ -1040,7 +1032,6 @@ fi
%{_prefix}/bin/%{gcc_target_arch}-gcc-nm %{_prefix}/bin/%{gcc_target_arch}-gcc-nm
%{_prefix}/bin/%{gcc_target_arch}-gcc-ranlib %{_prefix}/bin/%{gcc_target_arch}-gcc-ranlib
%{_prefix}/bin/%{gcc_target_arch}-lto-dump %{_prefix}/bin/%{gcc_target_arch}-lto-dump
%if %{suse_version} < 1600
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-cpp %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-cpp
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc-ar %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc-ar
@@ -1052,16 +1043,13 @@ fi
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcov-dump %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcov-dump
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcov-tool %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcov-tool
%endif %endif
%endif
%if %{build_cp} %if %{build_cp}
%{_prefix}/bin/%{gcc_target_arch}-c++
%{_prefix}/bin/%{gcc_target_arch}-g++
%if %{suse_version} < 1600
%{_prefix}/bin/%{gcc_target_arch}-c++%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-c++%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-g++%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-g++%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-c++
%{_prefix}/bin/%{gcc_target_arch}-g++
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-c++ %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-c++
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-g++ %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-g++
%endif
%if 0%{!?gcc_libc_bootstrap:1} %if 0%{!?gcc_libc_bootstrap:1}
%if "%{cross_arch}" == "avr" || 0%{?gcc_target_newlib:1} || 0%{?gcc_target_glibc:1} %if "%{cross_arch}" == "avr" || 0%{?gcc_target_newlib:1} || 0%{?gcc_target_glibc:1}
%{_prefix}/include/c++ %{_prefix}/include/c++

View File

@@ -292,24 +292,26 @@ ExclusiveArch: i586 ppc64le ppc64 x86_64 s390x aarch64 riscv64
%if "%pkgname" == "cross-ppc64-gcc49" %if "%pkgname" == "cross-ppc64-gcc49"
Obsoletes: cross-ppc-gcc49 <= 4.9.0+r209354 Obsoletes: cross-ppc-gcc49 <= 4.9.0+r209354
%endif %endif
%if 0%{!?gcc_accel:1} %if 0%{?gcc_target_newlib:1}%{?gcc_target_glibc:1} || "%{cross_arch}" == "avr"
# Generally only one cross for the same target triplet can be installed # Generally only one cross for the same target triplet can be installed
# at the same time as we are populating a non-version-specific sysroot # at the same time as we are populating a non-version-specific sysroot
Provides: %{gcc_target_arch}-gcc
Conflicts: %selfconflict %{gcc_target_arch}-gcc
%endif
%if 0%{?gcc_libc_bootstrap:1}
# The -bootstrap packages file-conflict with the non-bootstrap variants. # The -bootstrap packages file-conflict with the non-bootstrap variants.
# Even if we don't actually (want to) distribute the bootstrap variants # Even if we don't actually (want to) distribute the bootstrap variants
# the following avoids repo-checker spamming us endlessly. # the following avoids repo-checker spamming us endlessly.
Provides: %{gcc_target_arch}-gcc
Conflicts: %{gcc_target_arch}-gcc Conflicts: %{gcc_target_arch}-gcc
Conflicts: %{pkgname}-bootstrap
%endif %endif
#!BuildIgnore: gcc-PIE #!BuildIgnore: gcc-PIE
%if %{build_cp} %if 0%{build_cp:1}
# The cross compiler only packages the arch specific c++ headers, so # The cross compiler only packages the arch specific c++ headers, so
# we need to depend on the host libstdc++ devel headers (we wouldn't need # we need to depend on the host libstdc++ devel headers (we wouldn't need
# the libs, though) # the libs, though)
Requires: libstdc++6-devel-gcc13 Requires: libstdc++6-devel-gcc13
%endif %endif
%if 0%{!?gcc_accel:1} && %{suse_version} < 1600 %if 0%{!?gcc_accel:1}
BuildRequires: update-alternatives BuildRequires: update-alternatives
Requires(post): update-alternatives Requires(post): update-alternatives
Requires(preun): update-alternatives Requires(preun): update-alternatives
@@ -585,11 +587,11 @@ amdgcn-amdhsa,\
--enable-gnu-indirect-function \ --enable-gnu-indirect-function \
%endif %endif
%endif %endif
--program-suffix=%{binsuffix} \
%ifarch %{disable_multilib_arch} %ifarch %{disable_multilib_arch}
--disable-multilib \ --disable-multilib \
%endif %endif
%if 0%{!?gcc_target_arch:1} %if 0%{!?gcc_target_arch:1}
--program-suffix=%{binsuffix} \
%ifarch ia64 %ifarch ia64
--with-system-libunwind \ --with-system-libunwind \
%else %else
@@ -597,9 +599,6 @@ amdgcn-amdhsa,\
%endif %endif
%endif %endif
%if 0%{?gcc_target_arch:1} %if 0%{?gcc_target_arch:1}
%if 0%{?gcc_accel:1} || %{suse_version} < 1600
--program-suffix=%{binsuffix} \
%endif
--program-prefix=%{gcc_target_arch}- \ --program-prefix=%{gcc_target_arch}- \
--target=%{gcc_target_arch} \ --target=%{gcc_target_arch} \
--disable-nls \ --disable-nls \
@@ -862,7 +861,7 @@ rm -f $RPM_BUILD_ROOT%{_libdir}/libiberty.a
mkdir -p $RPM_BUILD_ROOT/%{?sysroot:%sysroot} mkdir -p $RPM_BUILD_ROOT/%{?sysroot:%sysroot}
make DESTDIR=$RPM_BUILD_ROOT install-target make DESTDIR=$RPM_BUILD_ROOT install-target
%if %{build_cp} %if %{build_cp}
# So we installed libstdc++ headers into %%prefix where they conflict # So we installed libstdc++ headers into %prefix where they conflict
# with other host compilers. Rip out the non-target specific parts # with other host compilers. Rip out the non-target specific parts
# again. Note not all cross targets support libstdc++, so create the # again. Note not all cross targets support libstdc++, so create the
# directory to make things easier. # directory to make things easier.
@@ -887,7 +886,6 @@ rm -rf $RPM_BUILD_ROOT%{_infodir}
# for accelerators remove all frontends but lto1 and also install-tools # for accelerators remove all frontends but lto1 and also install-tools
%if 0%{?gcc_accel:1} %if 0%{?gcc_accel:1}
rm -f $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch}/cc1 rm -f $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch}/cc1
rm -f $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch}/f951
rm -f $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch}/cc1plus rm -f $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch}/cc1plus
rm -rf $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch}/install-tools rm -rf $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch}/install-tools
rm -rf $RPM_BUILD_ROOT%{targetlibsubdir}/install-tools rm -rf $RPM_BUILD_ROOT%{targetlibsubdir}/install-tools
@@ -895,8 +893,6 @@ rm -rf $RPM_BUILD_ROOT%{targetlibsubdir}/install-tools
# that is the place where we later search for (only) # that is the place where we later search for (only)
( cd $RPM_BUILD_ROOT%{targetlibsubdir} && tar cf - . ) | ( cd $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch} && tar xf - ) ( cd $RPM_BUILD_ROOT%{targetlibsubdir} && tar cf - . ) | ( cd $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch} && tar xf - )
rm -rf $RPM_BUILD_ROOT%{targetlibsubdir} rm -rf $RPM_BUILD_ROOT%{targetlibsubdir}
# also remove installed libstdc++ headers
rm -rf $RPM_BUILD_ROOT%{_prefix}/include/c++
%endif %endif
# for amdgcn install the symlinks to the llvm tools # for amdgcn install the symlinks to the llvm tools
# follow alternatives symlinks to the hardcoded version requirement # follow alternatives symlinks to the hardcoded version requirement
@@ -961,7 +957,7 @@ rm -r env
# we provide update-alternatives for selecting a compiler version for # we provide update-alternatives for selecting a compiler version for
# crosses # crosses
%if 0%{!?gcc_accel:1} && %{suse_version} < 1600 %if 0%{!?gcc_accel:1}
mkdir -p %{buildroot}%{_sysconfdir}/alternatives mkdir -p %{buildroot}%{_sysconfdir}/alternatives
for ex in gcc cpp \ for ex in gcc cpp \
%if %{build_cp} %if %{build_cp}
@@ -1017,19 +1013,15 @@ fi
%endif %endif
%else %else
%{_prefix}/bin/%{gcc_target_arch}-gcc%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcc%{binsuffix}
%if %{suse_version} < 1600
%{_prefix}/bin/%{gcc_target_arch}-cpp%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-cpp%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-gcc-ar%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcc-ar%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-gcc-nm%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcc-nm%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-gcc-ranlib%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcc-ranlib%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-lto-dump%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-lto-dump%{binsuffix}
%endif
%if 0%{!?gcc_libc_bootstrap:1} && "%{cross_arch}" != "bpf" %if 0%{!?gcc_libc_bootstrap:1} && "%{cross_arch}" != "bpf"
%if %{suse_version} < 1600
%{_prefix}/bin/%{gcc_target_arch}-gcov%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcov%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-gcov-dump%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcov-dump%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-gcov-tool%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcov-tool%{binsuffix}
%endif
%{_prefix}/bin/%{gcc_target_arch}-gcov %{_prefix}/bin/%{gcc_target_arch}-gcov
%{_prefix}/bin/%{gcc_target_arch}-gcov-dump %{_prefix}/bin/%{gcc_target_arch}-gcov-dump
%{_prefix}/bin/%{gcc_target_arch}-gcov-tool %{_prefix}/bin/%{gcc_target_arch}-gcov-tool
@@ -1040,7 +1032,6 @@ fi
%{_prefix}/bin/%{gcc_target_arch}-gcc-nm %{_prefix}/bin/%{gcc_target_arch}-gcc-nm
%{_prefix}/bin/%{gcc_target_arch}-gcc-ranlib %{_prefix}/bin/%{gcc_target_arch}-gcc-ranlib
%{_prefix}/bin/%{gcc_target_arch}-lto-dump %{_prefix}/bin/%{gcc_target_arch}-lto-dump
%if %{suse_version} < 1600
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-cpp %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-cpp
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc-ar %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc-ar
@@ -1052,16 +1043,13 @@ fi
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcov-dump %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcov-dump
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcov-tool %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcov-tool
%endif %endif
%endif
%if %{build_cp} %if %{build_cp}
%{_prefix}/bin/%{gcc_target_arch}-c++
%{_prefix}/bin/%{gcc_target_arch}-g++
%if %{suse_version} < 1600
%{_prefix}/bin/%{gcc_target_arch}-c++%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-c++%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-g++%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-g++%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-c++
%{_prefix}/bin/%{gcc_target_arch}-g++
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-c++ %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-c++
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-g++ %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-g++
%endif
%if 0%{!?gcc_libc_bootstrap:1} %if 0%{!?gcc_libc_bootstrap:1}
%if "%{cross_arch}" == "avr" || 0%{?gcc_target_newlib:1} || 0%{?gcc_target_glibc:1} %if "%{cross_arch}" == "avr" || 0%{?gcc_target_newlib:1} || 0%{?gcc_target_glibc:1}
%{_prefix}/include/c++ %{_prefix}/include/c++

View File

@@ -19,8 +19,7 @@
%define pkgname cross-arm-gcc13 %define pkgname cross-arm-gcc13
%define cross_arch arm %define cross_arch arm
%define gcc_target_arch arm-suse-linux-gnueabi %define gcc_target_arch arm-suse-linux-gnueabi
%define gcc_target_glibc 1 %define gcc_icecream 1
%define gcc_libc_bootstrap 1
# nospeccleaner # nospeccleaner
%define build_cp 0%{!?gcc_accel:1} %define build_cp 0%{!?gcc_accel:1}
@@ -293,24 +292,26 @@ ExclusiveArch: i586 ppc64le ppc64 x86_64 s390x aarch64 riscv64
%if "%pkgname" == "cross-ppc64-gcc49" %if "%pkgname" == "cross-ppc64-gcc49"
Obsoletes: cross-ppc-gcc49 <= 4.9.0+r209354 Obsoletes: cross-ppc-gcc49 <= 4.9.0+r209354
%endif %endif
%if 0%{!?gcc_accel:1} %if 0%{?gcc_target_newlib:1}%{?gcc_target_glibc:1} || "%{cross_arch}" == "avr"
# Generally only one cross for the same target triplet can be installed # Generally only one cross for the same target triplet can be installed
# at the same time as we are populating a non-version-specific sysroot # at the same time as we are populating a non-version-specific sysroot
Provides: %{gcc_target_arch}-gcc
Conflicts: %selfconflict %{gcc_target_arch}-gcc
%endif
%if 0%{?gcc_libc_bootstrap:1}
# The -bootstrap packages file-conflict with the non-bootstrap variants. # The -bootstrap packages file-conflict with the non-bootstrap variants.
# Even if we don't actually (want to) distribute the bootstrap variants # Even if we don't actually (want to) distribute the bootstrap variants
# the following avoids repo-checker spamming us endlessly. # the following avoids repo-checker spamming us endlessly.
Provides: %{gcc_target_arch}-gcc
Conflicts: %{gcc_target_arch}-gcc Conflicts: %{gcc_target_arch}-gcc
Conflicts: %{pkgname}-bootstrap
%endif %endif
#!BuildIgnore: gcc-PIE #!BuildIgnore: gcc-PIE
%if %{build_cp} %if 0%{build_cp:1}
# The cross compiler only packages the arch specific c++ headers, so # The cross compiler only packages the arch specific c++ headers, so
# we need to depend on the host libstdc++ devel headers (we wouldn't need # we need to depend on the host libstdc++ devel headers (we wouldn't need
# the libs, though) # the libs, though)
Requires: libstdc++6-devel-gcc13 Requires: libstdc++6-devel-gcc13
%endif %endif
%if 0%{!?gcc_accel:1} && %{suse_version} < 1600 %if 0%{!?gcc_accel:1}
BuildRequires: update-alternatives BuildRequires: update-alternatives
Requires(post): update-alternatives Requires(post): update-alternatives
Requires(preun): update-alternatives Requires(preun): update-alternatives
@@ -586,11 +587,11 @@ amdgcn-amdhsa,\
--enable-gnu-indirect-function \ --enable-gnu-indirect-function \
%endif %endif
%endif %endif
--program-suffix=%{binsuffix} \
%ifarch %{disable_multilib_arch} %ifarch %{disable_multilib_arch}
--disable-multilib \ --disable-multilib \
%endif %endif
%if 0%{!?gcc_target_arch:1} %if 0%{!?gcc_target_arch:1}
--program-suffix=%{binsuffix} \
%ifarch ia64 %ifarch ia64
--with-system-libunwind \ --with-system-libunwind \
%else %else
@@ -598,9 +599,6 @@ amdgcn-amdhsa,\
%endif %endif
%endif %endif
%if 0%{?gcc_target_arch:1} %if 0%{?gcc_target_arch:1}
%if 0%{?gcc_accel:1} || %{suse_version} < 1600
--program-suffix=%{binsuffix} \
%endif
--program-prefix=%{gcc_target_arch}- \ --program-prefix=%{gcc_target_arch}- \
--target=%{gcc_target_arch} \ --target=%{gcc_target_arch} \
--disable-nls \ --disable-nls \
@@ -863,7 +861,7 @@ rm -f $RPM_BUILD_ROOT%{_libdir}/libiberty.a
mkdir -p $RPM_BUILD_ROOT/%{?sysroot:%sysroot} mkdir -p $RPM_BUILD_ROOT/%{?sysroot:%sysroot}
make DESTDIR=$RPM_BUILD_ROOT install-target make DESTDIR=$RPM_BUILD_ROOT install-target
%if %{build_cp} %if %{build_cp}
# So we installed libstdc++ headers into %%prefix where they conflict # So we installed libstdc++ headers into %prefix where they conflict
# with other host compilers. Rip out the non-target specific parts # with other host compilers. Rip out the non-target specific parts
# again. Note not all cross targets support libstdc++, so create the # again. Note not all cross targets support libstdc++, so create the
# directory to make things easier. # directory to make things easier.
@@ -888,7 +886,6 @@ rm -rf $RPM_BUILD_ROOT%{_infodir}
# for accelerators remove all frontends but lto1 and also install-tools # for accelerators remove all frontends but lto1 and also install-tools
%if 0%{?gcc_accel:1} %if 0%{?gcc_accel:1}
rm -f $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch}/cc1 rm -f $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch}/cc1
rm -f $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch}/f951
rm -f $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch}/cc1plus rm -f $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch}/cc1plus
rm -rf $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch}/install-tools rm -rf $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch}/install-tools
rm -rf $RPM_BUILD_ROOT%{targetlibsubdir}/install-tools rm -rf $RPM_BUILD_ROOT%{targetlibsubdir}/install-tools
@@ -896,8 +893,6 @@ rm -rf $RPM_BUILD_ROOT%{targetlibsubdir}/install-tools
# that is the place where we later search for (only) # that is the place where we later search for (only)
( cd $RPM_BUILD_ROOT%{targetlibsubdir} && tar cf - . ) | ( cd $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch} && tar xf - ) ( cd $RPM_BUILD_ROOT%{targetlibsubdir} && tar cf - . ) | ( cd $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch} && tar xf - )
rm -rf $RPM_BUILD_ROOT%{targetlibsubdir} rm -rf $RPM_BUILD_ROOT%{targetlibsubdir}
# also remove installed libstdc++ headers
rm -rf $RPM_BUILD_ROOT%{_prefix}/include/c++
%endif %endif
# for amdgcn install the symlinks to the llvm tools # for amdgcn install the symlinks to the llvm tools
# follow alternatives symlinks to the hardcoded version requirement # follow alternatives symlinks to the hardcoded version requirement
@@ -962,7 +957,7 @@ rm -r env
# we provide update-alternatives for selecting a compiler version for # we provide update-alternatives for selecting a compiler version for
# crosses # crosses
%if 0%{!?gcc_accel:1} && %{suse_version} < 1600 %if 0%{!?gcc_accel:1}
mkdir -p %{buildroot}%{_sysconfdir}/alternatives mkdir -p %{buildroot}%{_sysconfdir}/alternatives
for ex in gcc cpp \ for ex in gcc cpp \
%if %{build_cp} %if %{build_cp}
@@ -1018,19 +1013,15 @@ fi
%endif %endif
%else %else
%{_prefix}/bin/%{gcc_target_arch}-gcc%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcc%{binsuffix}
%if %{suse_version} < 1600
%{_prefix}/bin/%{gcc_target_arch}-cpp%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-cpp%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-gcc-ar%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcc-ar%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-gcc-nm%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcc-nm%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-gcc-ranlib%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcc-ranlib%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-lto-dump%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-lto-dump%{binsuffix}
%endif
%if 0%{!?gcc_libc_bootstrap:1} && "%{cross_arch}" != "bpf" %if 0%{!?gcc_libc_bootstrap:1} && "%{cross_arch}" != "bpf"
%if %{suse_version} < 1600
%{_prefix}/bin/%{gcc_target_arch}-gcov%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcov%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-gcov-dump%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcov-dump%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-gcov-tool%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcov-tool%{binsuffix}
%endif
%{_prefix}/bin/%{gcc_target_arch}-gcov %{_prefix}/bin/%{gcc_target_arch}-gcov
%{_prefix}/bin/%{gcc_target_arch}-gcov-dump %{_prefix}/bin/%{gcc_target_arch}-gcov-dump
%{_prefix}/bin/%{gcc_target_arch}-gcov-tool %{_prefix}/bin/%{gcc_target_arch}-gcov-tool
@@ -1041,7 +1032,6 @@ fi
%{_prefix}/bin/%{gcc_target_arch}-gcc-nm %{_prefix}/bin/%{gcc_target_arch}-gcc-nm
%{_prefix}/bin/%{gcc_target_arch}-gcc-ranlib %{_prefix}/bin/%{gcc_target_arch}-gcc-ranlib
%{_prefix}/bin/%{gcc_target_arch}-lto-dump %{_prefix}/bin/%{gcc_target_arch}-lto-dump
%if %{suse_version} < 1600
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-cpp %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-cpp
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc-ar %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc-ar
@@ -1053,16 +1043,13 @@ fi
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcov-dump %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcov-dump
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcov-tool %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcov-tool
%endif %endif
%endif
%if %{build_cp} %if %{build_cp}
%{_prefix}/bin/%{gcc_target_arch}-c++
%{_prefix}/bin/%{gcc_target_arch}-g++
%if %{suse_version} < 1600
%{_prefix}/bin/%{gcc_target_arch}-c++%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-c++%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-g++%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-g++%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-c++
%{_prefix}/bin/%{gcc_target_arch}-g++
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-c++ %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-c++
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-g++ %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-g++
%endif
%if 0%{!?gcc_libc_bootstrap:1} %if 0%{!?gcc_libc_bootstrap:1}
%if "%{cross_arch}" == "avr" || 0%{?gcc_target_newlib:1} || 0%{?gcc_target_glibc:1} %if "%{cross_arch}" == "avr" || 0%{?gcc_target_newlib:1} || 0%{?gcc_target_glibc:1}
%{_prefix}/include/c++ %{_prefix}/include/c++

View File

@@ -293,24 +293,26 @@ ExclusiveArch: i586 ppc64le ppc64 x86_64 s390x aarch64 riscv64
%if "%pkgname" == "cross-ppc64-gcc49" %if "%pkgname" == "cross-ppc64-gcc49"
Obsoletes: cross-ppc-gcc49 <= 4.9.0+r209354 Obsoletes: cross-ppc-gcc49 <= 4.9.0+r209354
%endif %endif
%if 0%{!?gcc_accel:1} %if 0%{?gcc_target_newlib:1}%{?gcc_target_glibc:1} || "%{cross_arch}" == "avr"
# Generally only one cross for the same target triplet can be installed # Generally only one cross for the same target triplet can be installed
# at the same time as we are populating a non-version-specific sysroot # at the same time as we are populating a non-version-specific sysroot
Provides: %{gcc_target_arch}-gcc
Conflicts: %selfconflict %{gcc_target_arch}-gcc
%endif
%if 0%{?gcc_libc_bootstrap:1}
# The -bootstrap packages file-conflict with the non-bootstrap variants. # The -bootstrap packages file-conflict with the non-bootstrap variants.
# Even if we don't actually (want to) distribute the bootstrap variants # Even if we don't actually (want to) distribute the bootstrap variants
# the following avoids repo-checker spamming us endlessly. # the following avoids repo-checker spamming us endlessly.
Provides: %{gcc_target_arch}-gcc
Conflicts: %{gcc_target_arch}-gcc Conflicts: %{gcc_target_arch}-gcc
Conflicts: %{pkgname}-bootstrap
%endif %endif
#!BuildIgnore: gcc-PIE #!BuildIgnore: gcc-PIE
%if %{build_cp} %if 0%{build_cp:1}
# The cross compiler only packages the arch specific c++ headers, so # The cross compiler only packages the arch specific c++ headers, so
# we need to depend on the host libstdc++ devel headers (we wouldn't need # we need to depend on the host libstdc++ devel headers (we wouldn't need
# the libs, though) # the libs, though)
Requires: libstdc++6-devel-gcc13 Requires: libstdc++6-devel-gcc13
%endif %endif
%if 0%{!?gcc_accel:1} && %{suse_version} < 1600 %if 0%{!?gcc_accel:1}
BuildRequires: update-alternatives BuildRequires: update-alternatives
Requires(post): update-alternatives Requires(post): update-alternatives
Requires(preun): update-alternatives Requires(preun): update-alternatives
@@ -586,11 +588,11 @@ amdgcn-amdhsa,\
--enable-gnu-indirect-function \ --enable-gnu-indirect-function \
%endif %endif
%endif %endif
--program-suffix=%{binsuffix} \
%ifarch %{disable_multilib_arch} %ifarch %{disable_multilib_arch}
--disable-multilib \ --disable-multilib \
%endif %endif
%if 0%{!?gcc_target_arch:1} %if 0%{!?gcc_target_arch:1}
--program-suffix=%{binsuffix} \
%ifarch ia64 %ifarch ia64
--with-system-libunwind \ --with-system-libunwind \
%else %else
@@ -598,9 +600,6 @@ amdgcn-amdhsa,\
%endif %endif
%endif %endif
%if 0%{?gcc_target_arch:1} %if 0%{?gcc_target_arch:1}
%if 0%{?gcc_accel:1} || %{suse_version} < 1600
--program-suffix=%{binsuffix} \
%endif
--program-prefix=%{gcc_target_arch}- \ --program-prefix=%{gcc_target_arch}- \
--target=%{gcc_target_arch} \ --target=%{gcc_target_arch} \
--disable-nls \ --disable-nls \
@@ -863,7 +862,7 @@ rm -f $RPM_BUILD_ROOT%{_libdir}/libiberty.a
mkdir -p $RPM_BUILD_ROOT/%{?sysroot:%sysroot} mkdir -p $RPM_BUILD_ROOT/%{?sysroot:%sysroot}
make DESTDIR=$RPM_BUILD_ROOT install-target make DESTDIR=$RPM_BUILD_ROOT install-target
%if %{build_cp} %if %{build_cp}
# So we installed libstdc++ headers into %%prefix where they conflict # So we installed libstdc++ headers into %prefix where they conflict
# with other host compilers. Rip out the non-target specific parts # with other host compilers. Rip out the non-target specific parts
# again. Note not all cross targets support libstdc++, so create the # again. Note not all cross targets support libstdc++, so create the
# directory to make things easier. # directory to make things easier.
@@ -888,7 +887,6 @@ rm -rf $RPM_BUILD_ROOT%{_infodir}
# for accelerators remove all frontends but lto1 and also install-tools # for accelerators remove all frontends but lto1 and also install-tools
%if 0%{?gcc_accel:1} %if 0%{?gcc_accel:1}
rm -f $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch}/cc1 rm -f $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch}/cc1
rm -f $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch}/f951
rm -f $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch}/cc1plus rm -f $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch}/cc1plus
rm -rf $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch}/install-tools rm -rf $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch}/install-tools
rm -rf $RPM_BUILD_ROOT%{targetlibsubdir}/install-tools rm -rf $RPM_BUILD_ROOT%{targetlibsubdir}/install-tools
@@ -896,8 +894,6 @@ rm -rf $RPM_BUILD_ROOT%{targetlibsubdir}/install-tools
# that is the place where we later search for (only) # that is the place where we later search for (only)
( cd $RPM_BUILD_ROOT%{targetlibsubdir} && tar cf - . ) | ( cd $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch} && tar xf - ) ( cd $RPM_BUILD_ROOT%{targetlibsubdir} && tar cf - . ) | ( cd $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch} && tar xf - )
rm -rf $RPM_BUILD_ROOT%{targetlibsubdir} rm -rf $RPM_BUILD_ROOT%{targetlibsubdir}
# also remove installed libstdc++ headers
rm -rf $RPM_BUILD_ROOT%{_prefix}/include/c++
%endif %endif
# for amdgcn install the symlinks to the llvm tools # for amdgcn install the symlinks to the llvm tools
# follow alternatives symlinks to the hardcoded version requirement # follow alternatives symlinks to the hardcoded version requirement
@@ -962,7 +958,7 @@ rm -r env
# we provide update-alternatives for selecting a compiler version for # we provide update-alternatives for selecting a compiler version for
# crosses # crosses
%if 0%{!?gcc_accel:1} && %{suse_version} < 1600 %if 0%{!?gcc_accel:1}
mkdir -p %{buildroot}%{_sysconfdir}/alternatives mkdir -p %{buildroot}%{_sysconfdir}/alternatives
for ex in gcc cpp \ for ex in gcc cpp \
%if %{build_cp} %if %{build_cp}
@@ -1018,19 +1014,15 @@ fi
%endif %endif
%else %else
%{_prefix}/bin/%{gcc_target_arch}-gcc%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcc%{binsuffix}
%if %{suse_version} < 1600
%{_prefix}/bin/%{gcc_target_arch}-cpp%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-cpp%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-gcc-ar%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcc-ar%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-gcc-nm%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcc-nm%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-gcc-ranlib%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcc-ranlib%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-lto-dump%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-lto-dump%{binsuffix}
%endif
%if 0%{!?gcc_libc_bootstrap:1} && "%{cross_arch}" != "bpf" %if 0%{!?gcc_libc_bootstrap:1} && "%{cross_arch}" != "bpf"
%if %{suse_version} < 1600
%{_prefix}/bin/%{gcc_target_arch}-gcov%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcov%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-gcov-dump%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcov-dump%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-gcov-tool%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcov-tool%{binsuffix}
%endif
%{_prefix}/bin/%{gcc_target_arch}-gcov %{_prefix}/bin/%{gcc_target_arch}-gcov
%{_prefix}/bin/%{gcc_target_arch}-gcov-dump %{_prefix}/bin/%{gcc_target_arch}-gcov-dump
%{_prefix}/bin/%{gcc_target_arch}-gcov-tool %{_prefix}/bin/%{gcc_target_arch}-gcov-tool
@@ -1041,7 +1033,6 @@ fi
%{_prefix}/bin/%{gcc_target_arch}-gcc-nm %{_prefix}/bin/%{gcc_target_arch}-gcc-nm
%{_prefix}/bin/%{gcc_target_arch}-gcc-ranlib %{_prefix}/bin/%{gcc_target_arch}-gcc-ranlib
%{_prefix}/bin/%{gcc_target_arch}-lto-dump %{_prefix}/bin/%{gcc_target_arch}-lto-dump
%if %{suse_version} < 1600
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-cpp %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-cpp
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc-ar %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc-ar
@@ -1053,16 +1044,13 @@ fi
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcov-dump %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcov-dump
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcov-tool %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcov-tool
%endif %endif
%endif
%if %{build_cp} %if %{build_cp}
%{_prefix}/bin/%{gcc_target_arch}-c++
%{_prefix}/bin/%{gcc_target_arch}-g++
%if %{suse_version} < 1600
%{_prefix}/bin/%{gcc_target_arch}-c++%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-c++%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-g++%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-g++%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-c++
%{_prefix}/bin/%{gcc_target_arch}-g++
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-c++ %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-c++
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-g++ %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-g++
%endif
%if 0%{!?gcc_libc_bootstrap:1} %if 0%{!?gcc_libc_bootstrap:1}
%if "%{cross_arch}" == "avr" || 0%{?gcc_target_newlib:1} || 0%{?gcc_target_glibc:1} %if "%{cross_arch}" == "avr" || 0%{?gcc_target_newlib:1} || 0%{?gcc_target_glibc:1}
%{_prefix}/include/c++ %{_prefix}/include/c++

View File

@@ -292,24 +292,26 @@ ExclusiveArch: i586 ppc64le ppc64 x86_64 s390x aarch64 riscv64
%if "%pkgname" == "cross-ppc64-gcc49" %if "%pkgname" == "cross-ppc64-gcc49"
Obsoletes: cross-ppc-gcc49 <= 4.9.0+r209354 Obsoletes: cross-ppc-gcc49 <= 4.9.0+r209354
%endif %endif
%if 0%{!?gcc_accel:1} %if 0%{?gcc_target_newlib:1}%{?gcc_target_glibc:1} || "%{cross_arch}" == "avr"
# Generally only one cross for the same target triplet can be installed # Generally only one cross for the same target triplet can be installed
# at the same time as we are populating a non-version-specific sysroot # at the same time as we are populating a non-version-specific sysroot
Provides: %{gcc_target_arch}-gcc
Conflicts: %selfconflict %{gcc_target_arch}-gcc
%endif
%if 0%{?gcc_libc_bootstrap:1}
# The -bootstrap packages file-conflict with the non-bootstrap variants. # The -bootstrap packages file-conflict with the non-bootstrap variants.
# Even if we don't actually (want to) distribute the bootstrap variants # Even if we don't actually (want to) distribute the bootstrap variants
# the following avoids repo-checker spamming us endlessly. # the following avoids repo-checker spamming us endlessly.
Provides: %{gcc_target_arch}-gcc
Conflicts: %{gcc_target_arch}-gcc Conflicts: %{gcc_target_arch}-gcc
Conflicts: %{pkgname}-bootstrap
%endif %endif
#!BuildIgnore: gcc-PIE #!BuildIgnore: gcc-PIE
%if %{build_cp} %if 0%{build_cp:1}
# The cross compiler only packages the arch specific c++ headers, so # The cross compiler only packages the arch specific c++ headers, so
# we need to depend on the host libstdc++ devel headers (we wouldn't need # we need to depend on the host libstdc++ devel headers (we wouldn't need
# the libs, though) # the libs, though)
Requires: libstdc++6-devel-gcc13 Requires: libstdc++6-devel-gcc13
%endif %endif
%if 0%{!?gcc_accel:1} && %{suse_version} < 1600 %if 0%{!?gcc_accel:1}
BuildRequires: update-alternatives BuildRequires: update-alternatives
Requires(post): update-alternatives Requires(post): update-alternatives
Requires(preun): update-alternatives Requires(preun): update-alternatives
@@ -585,11 +587,11 @@ amdgcn-amdhsa,\
--enable-gnu-indirect-function \ --enable-gnu-indirect-function \
%endif %endif
%endif %endif
--program-suffix=%{binsuffix} \
%ifarch %{disable_multilib_arch} %ifarch %{disable_multilib_arch}
--disable-multilib \ --disable-multilib \
%endif %endif
%if 0%{!?gcc_target_arch:1} %if 0%{!?gcc_target_arch:1}
--program-suffix=%{binsuffix} \
%ifarch ia64 %ifarch ia64
--with-system-libunwind \ --with-system-libunwind \
%else %else
@@ -597,9 +599,6 @@ amdgcn-amdhsa,\
%endif %endif
%endif %endif
%if 0%{?gcc_target_arch:1} %if 0%{?gcc_target_arch:1}
%if 0%{?gcc_accel:1} || %{suse_version} < 1600
--program-suffix=%{binsuffix} \
%endif
--program-prefix=%{gcc_target_arch}- \ --program-prefix=%{gcc_target_arch}- \
--target=%{gcc_target_arch} \ --target=%{gcc_target_arch} \
--disable-nls \ --disable-nls \
@@ -862,7 +861,7 @@ rm -f $RPM_BUILD_ROOT%{_libdir}/libiberty.a
mkdir -p $RPM_BUILD_ROOT/%{?sysroot:%sysroot} mkdir -p $RPM_BUILD_ROOT/%{?sysroot:%sysroot}
make DESTDIR=$RPM_BUILD_ROOT install-target make DESTDIR=$RPM_BUILD_ROOT install-target
%if %{build_cp} %if %{build_cp}
# So we installed libstdc++ headers into %%prefix where they conflict # So we installed libstdc++ headers into %prefix where they conflict
# with other host compilers. Rip out the non-target specific parts # with other host compilers. Rip out the non-target specific parts
# again. Note not all cross targets support libstdc++, so create the # again. Note not all cross targets support libstdc++, so create the
# directory to make things easier. # directory to make things easier.
@@ -887,7 +886,6 @@ rm -rf $RPM_BUILD_ROOT%{_infodir}
# for accelerators remove all frontends but lto1 and also install-tools # for accelerators remove all frontends but lto1 and also install-tools
%if 0%{?gcc_accel:1} %if 0%{?gcc_accel:1}
rm -f $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch}/cc1 rm -f $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch}/cc1
rm -f $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch}/f951
rm -f $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch}/cc1plus rm -f $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch}/cc1plus
rm -rf $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch}/install-tools rm -rf $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch}/install-tools
rm -rf $RPM_BUILD_ROOT%{targetlibsubdir}/install-tools rm -rf $RPM_BUILD_ROOT%{targetlibsubdir}/install-tools
@@ -895,8 +893,6 @@ rm -rf $RPM_BUILD_ROOT%{targetlibsubdir}/install-tools
# that is the place where we later search for (only) # that is the place where we later search for (only)
( cd $RPM_BUILD_ROOT%{targetlibsubdir} && tar cf - . ) | ( cd $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch} && tar xf - ) ( cd $RPM_BUILD_ROOT%{targetlibsubdir} && tar cf - . ) | ( cd $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch} && tar xf - )
rm -rf $RPM_BUILD_ROOT%{targetlibsubdir} rm -rf $RPM_BUILD_ROOT%{targetlibsubdir}
# also remove installed libstdc++ headers
rm -rf $RPM_BUILD_ROOT%{_prefix}/include/c++
%endif %endif
# for amdgcn install the symlinks to the llvm tools # for amdgcn install the symlinks to the llvm tools
# follow alternatives symlinks to the hardcoded version requirement # follow alternatives symlinks to the hardcoded version requirement
@@ -961,7 +957,7 @@ rm -r env
# we provide update-alternatives for selecting a compiler version for # we provide update-alternatives for selecting a compiler version for
# crosses # crosses
%if 0%{!?gcc_accel:1} && %{suse_version} < 1600 %if 0%{!?gcc_accel:1}
mkdir -p %{buildroot}%{_sysconfdir}/alternatives mkdir -p %{buildroot}%{_sysconfdir}/alternatives
for ex in gcc cpp \ for ex in gcc cpp \
%if %{build_cp} %if %{build_cp}
@@ -1017,19 +1013,15 @@ fi
%endif %endif
%else %else
%{_prefix}/bin/%{gcc_target_arch}-gcc%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcc%{binsuffix}
%if %{suse_version} < 1600
%{_prefix}/bin/%{gcc_target_arch}-cpp%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-cpp%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-gcc-ar%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcc-ar%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-gcc-nm%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcc-nm%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-gcc-ranlib%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcc-ranlib%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-lto-dump%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-lto-dump%{binsuffix}
%endif
%if 0%{!?gcc_libc_bootstrap:1} && "%{cross_arch}" != "bpf" %if 0%{!?gcc_libc_bootstrap:1} && "%{cross_arch}" != "bpf"
%if %{suse_version} < 1600
%{_prefix}/bin/%{gcc_target_arch}-gcov%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcov%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-gcov-dump%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcov-dump%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-gcov-tool%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcov-tool%{binsuffix}
%endif
%{_prefix}/bin/%{gcc_target_arch}-gcov %{_prefix}/bin/%{gcc_target_arch}-gcov
%{_prefix}/bin/%{gcc_target_arch}-gcov-dump %{_prefix}/bin/%{gcc_target_arch}-gcov-dump
%{_prefix}/bin/%{gcc_target_arch}-gcov-tool %{_prefix}/bin/%{gcc_target_arch}-gcov-tool
@@ -1040,7 +1032,6 @@ fi
%{_prefix}/bin/%{gcc_target_arch}-gcc-nm %{_prefix}/bin/%{gcc_target_arch}-gcc-nm
%{_prefix}/bin/%{gcc_target_arch}-gcc-ranlib %{_prefix}/bin/%{gcc_target_arch}-gcc-ranlib
%{_prefix}/bin/%{gcc_target_arch}-lto-dump %{_prefix}/bin/%{gcc_target_arch}-lto-dump
%if %{suse_version} < 1600
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-cpp %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-cpp
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc-ar %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc-ar
@@ -1052,16 +1043,13 @@ fi
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcov-dump %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcov-dump
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcov-tool %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcov-tool
%endif %endif
%endif
%if %{build_cp} %if %{build_cp}
%{_prefix}/bin/%{gcc_target_arch}-c++
%{_prefix}/bin/%{gcc_target_arch}-g++
%if %{suse_version} < 1600
%{_prefix}/bin/%{gcc_target_arch}-c++%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-c++%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-g++%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-g++%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-c++
%{_prefix}/bin/%{gcc_target_arch}-g++
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-c++ %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-c++
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-g++ %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-g++
%endif
%if 0%{!?gcc_libc_bootstrap:1} %if 0%{!?gcc_libc_bootstrap:1}
%if "%{cross_arch}" == "avr" || 0%{?gcc_target_newlib:1} || 0%{?gcc_target_glibc:1} %if "%{cross_arch}" == "avr" || 0%{?gcc_target_newlib:1} || 0%{?gcc_target_glibc:1}
%{_prefix}/include/c++ %{_prefix}/include/c++

View File

@@ -292,24 +292,26 @@ ExclusiveArch: i586 ppc64le ppc64 x86_64 s390x aarch64 riscv64
%if "%pkgname" == "cross-ppc64-gcc49" %if "%pkgname" == "cross-ppc64-gcc49"
Obsoletes: cross-ppc-gcc49 <= 4.9.0+r209354 Obsoletes: cross-ppc-gcc49 <= 4.9.0+r209354
%endif %endif
%if 0%{!?gcc_accel:1} %if 0%{?gcc_target_newlib:1}%{?gcc_target_glibc:1} || "%{cross_arch}" == "avr"
# Generally only one cross for the same target triplet can be installed # Generally only one cross for the same target triplet can be installed
# at the same time as we are populating a non-version-specific sysroot # at the same time as we are populating a non-version-specific sysroot
Provides: %{gcc_target_arch}-gcc
Conflicts: %selfconflict %{gcc_target_arch}-gcc
%endif
%if 0%{?gcc_libc_bootstrap:1}
# The -bootstrap packages file-conflict with the non-bootstrap variants. # The -bootstrap packages file-conflict with the non-bootstrap variants.
# Even if we don't actually (want to) distribute the bootstrap variants # Even if we don't actually (want to) distribute the bootstrap variants
# the following avoids repo-checker spamming us endlessly. # the following avoids repo-checker spamming us endlessly.
Provides: %{gcc_target_arch}-gcc
Conflicts: %{gcc_target_arch}-gcc Conflicts: %{gcc_target_arch}-gcc
Conflicts: %{pkgname}-bootstrap
%endif %endif
#!BuildIgnore: gcc-PIE #!BuildIgnore: gcc-PIE
%if %{build_cp} %if 0%{build_cp:1}
# The cross compiler only packages the arch specific c++ headers, so # The cross compiler only packages the arch specific c++ headers, so
# we need to depend on the host libstdc++ devel headers (we wouldn't need # we need to depend on the host libstdc++ devel headers (we wouldn't need
# the libs, though) # the libs, though)
Requires: libstdc++6-devel-gcc13 Requires: libstdc++6-devel-gcc13
%endif %endif
%if 0%{!?gcc_accel:1} && %{suse_version} < 1600 %if 0%{!?gcc_accel:1}
BuildRequires: update-alternatives BuildRequires: update-alternatives
Requires(post): update-alternatives Requires(post): update-alternatives
Requires(preun): update-alternatives Requires(preun): update-alternatives
@@ -585,11 +587,11 @@ amdgcn-amdhsa,\
--enable-gnu-indirect-function \ --enable-gnu-indirect-function \
%endif %endif
%endif %endif
--program-suffix=%{binsuffix} \
%ifarch %{disable_multilib_arch} %ifarch %{disable_multilib_arch}
--disable-multilib \ --disable-multilib \
%endif %endif
%if 0%{!?gcc_target_arch:1} %if 0%{!?gcc_target_arch:1}
--program-suffix=%{binsuffix} \
%ifarch ia64 %ifarch ia64
--with-system-libunwind \ --with-system-libunwind \
%else %else
@@ -597,9 +599,6 @@ amdgcn-amdhsa,\
%endif %endif
%endif %endif
%if 0%{?gcc_target_arch:1} %if 0%{?gcc_target_arch:1}
%if 0%{?gcc_accel:1} || %{suse_version} < 1600
--program-suffix=%{binsuffix} \
%endif
--program-prefix=%{gcc_target_arch}- \ --program-prefix=%{gcc_target_arch}- \
--target=%{gcc_target_arch} \ --target=%{gcc_target_arch} \
--disable-nls \ --disable-nls \
@@ -862,7 +861,7 @@ rm -f $RPM_BUILD_ROOT%{_libdir}/libiberty.a
mkdir -p $RPM_BUILD_ROOT/%{?sysroot:%sysroot} mkdir -p $RPM_BUILD_ROOT/%{?sysroot:%sysroot}
make DESTDIR=$RPM_BUILD_ROOT install-target make DESTDIR=$RPM_BUILD_ROOT install-target
%if %{build_cp} %if %{build_cp}
# So we installed libstdc++ headers into %%prefix where they conflict # So we installed libstdc++ headers into %prefix where they conflict
# with other host compilers. Rip out the non-target specific parts # with other host compilers. Rip out the non-target specific parts
# again. Note not all cross targets support libstdc++, so create the # again. Note not all cross targets support libstdc++, so create the
# directory to make things easier. # directory to make things easier.
@@ -887,7 +886,6 @@ rm -rf $RPM_BUILD_ROOT%{_infodir}
# for accelerators remove all frontends but lto1 and also install-tools # for accelerators remove all frontends but lto1 and also install-tools
%if 0%{?gcc_accel:1} %if 0%{?gcc_accel:1}
rm -f $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch}/cc1 rm -f $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch}/cc1
rm -f $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch}/f951
rm -f $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch}/cc1plus rm -f $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch}/cc1plus
rm -rf $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch}/install-tools rm -rf $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch}/install-tools
rm -rf $RPM_BUILD_ROOT%{targetlibsubdir}/install-tools rm -rf $RPM_BUILD_ROOT%{targetlibsubdir}/install-tools
@@ -895,8 +893,6 @@ rm -rf $RPM_BUILD_ROOT%{targetlibsubdir}/install-tools
# that is the place where we later search for (only) # that is the place where we later search for (only)
( cd $RPM_BUILD_ROOT%{targetlibsubdir} && tar cf - . ) | ( cd $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch} && tar xf - ) ( cd $RPM_BUILD_ROOT%{targetlibsubdir} && tar cf - . ) | ( cd $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch} && tar xf - )
rm -rf $RPM_BUILD_ROOT%{targetlibsubdir} rm -rf $RPM_BUILD_ROOT%{targetlibsubdir}
# also remove installed libstdc++ headers
rm -rf $RPM_BUILD_ROOT%{_prefix}/include/c++
%endif %endif
# for amdgcn install the symlinks to the llvm tools # for amdgcn install the symlinks to the llvm tools
# follow alternatives symlinks to the hardcoded version requirement # follow alternatives symlinks to the hardcoded version requirement
@@ -961,7 +957,7 @@ rm -r env
# we provide update-alternatives for selecting a compiler version for # we provide update-alternatives for selecting a compiler version for
# crosses # crosses
%if 0%{!?gcc_accel:1} && %{suse_version} < 1600 %if 0%{!?gcc_accel:1}
mkdir -p %{buildroot}%{_sysconfdir}/alternatives mkdir -p %{buildroot}%{_sysconfdir}/alternatives
for ex in gcc cpp \ for ex in gcc cpp \
%if %{build_cp} %if %{build_cp}
@@ -1017,19 +1013,15 @@ fi
%endif %endif
%else %else
%{_prefix}/bin/%{gcc_target_arch}-gcc%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcc%{binsuffix}
%if %{suse_version} < 1600
%{_prefix}/bin/%{gcc_target_arch}-cpp%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-cpp%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-gcc-ar%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcc-ar%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-gcc-nm%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcc-nm%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-gcc-ranlib%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcc-ranlib%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-lto-dump%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-lto-dump%{binsuffix}
%endif
%if 0%{!?gcc_libc_bootstrap:1} && "%{cross_arch}" != "bpf" %if 0%{!?gcc_libc_bootstrap:1} && "%{cross_arch}" != "bpf"
%if %{suse_version} < 1600
%{_prefix}/bin/%{gcc_target_arch}-gcov%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcov%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-gcov-dump%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcov-dump%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-gcov-tool%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcov-tool%{binsuffix}
%endif
%{_prefix}/bin/%{gcc_target_arch}-gcov %{_prefix}/bin/%{gcc_target_arch}-gcov
%{_prefix}/bin/%{gcc_target_arch}-gcov-dump %{_prefix}/bin/%{gcc_target_arch}-gcov-dump
%{_prefix}/bin/%{gcc_target_arch}-gcov-tool %{_prefix}/bin/%{gcc_target_arch}-gcov-tool
@@ -1040,7 +1032,6 @@ fi
%{_prefix}/bin/%{gcc_target_arch}-gcc-nm %{_prefix}/bin/%{gcc_target_arch}-gcc-nm
%{_prefix}/bin/%{gcc_target_arch}-gcc-ranlib %{_prefix}/bin/%{gcc_target_arch}-gcc-ranlib
%{_prefix}/bin/%{gcc_target_arch}-lto-dump %{_prefix}/bin/%{gcc_target_arch}-lto-dump
%if %{suse_version} < 1600
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-cpp %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-cpp
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc-ar %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc-ar
@@ -1052,16 +1043,13 @@ fi
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcov-dump %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcov-dump
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcov-tool %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcov-tool
%endif %endif
%endif
%if %{build_cp} %if %{build_cp}
%{_prefix}/bin/%{gcc_target_arch}-c++
%{_prefix}/bin/%{gcc_target_arch}-g++
%if %{suse_version} < 1600
%{_prefix}/bin/%{gcc_target_arch}-c++%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-c++%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-g++%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-g++%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-c++
%{_prefix}/bin/%{gcc_target_arch}-g++
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-c++ %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-c++
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-g++ %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-g++
%endif
%if 0%{!?gcc_libc_bootstrap:1} %if 0%{!?gcc_libc_bootstrap:1}
%if "%{cross_arch}" == "avr" || 0%{?gcc_target_newlib:1} || 0%{?gcc_target_glibc:1} %if "%{cross_arch}" == "avr" || 0%{?gcc_target_newlib:1} || 0%{?gcc_target_glibc:1}
%{_prefix}/include/c++ %{_prefix}/include/c++

View File

@@ -292,24 +292,26 @@ ExclusiveArch: i586 ppc64le ppc64 x86_64 s390x aarch64 riscv64
%if "%pkgname" == "cross-ppc64-gcc49" %if "%pkgname" == "cross-ppc64-gcc49"
Obsoletes: cross-ppc-gcc49 <= 4.9.0+r209354 Obsoletes: cross-ppc-gcc49 <= 4.9.0+r209354
%endif %endif
%if 0%{!?gcc_accel:1} %if 0%{?gcc_target_newlib:1}%{?gcc_target_glibc:1} || "%{cross_arch}" == "avr"
# Generally only one cross for the same target triplet can be installed # Generally only one cross for the same target triplet can be installed
# at the same time as we are populating a non-version-specific sysroot # at the same time as we are populating a non-version-specific sysroot
Provides: %{gcc_target_arch}-gcc
Conflicts: %selfconflict %{gcc_target_arch}-gcc
%endif
%if 0%{?gcc_libc_bootstrap:1}
# The -bootstrap packages file-conflict with the non-bootstrap variants. # The -bootstrap packages file-conflict with the non-bootstrap variants.
# Even if we don't actually (want to) distribute the bootstrap variants # Even if we don't actually (want to) distribute the bootstrap variants
# the following avoids repo-checker spamming us endlessly. # the following avoids repo-checker spamming us endlessly.
Provides: %{gcc_target_arch}-gcc
Conflicts: %{gcc_target_arch}-gcc Conflicts: %{gcc_target_arch}-gcc
Conflicts: %{pkgname}-bootstrap
%endif %endif
#!BuildIgnore: gcc-PIE #!BuildIgnore: gcc-PIE
%if %{build_cp} %if 0%{build_cp:1}
# The cross compiler only packages the arch specific c++ headers, so # The cross compiler only packages the arch specific c++ headers, so
# we need to depend on the host libstdc++ devel headers (we wouldn't need # we need to depend on the host libstdc++ devel headers (we wouldn't need
# the libs, though) # the libs, though)
Requires: libstdc++6-devel-gcc13 Requires: libstdc++6-devel-gcc13
%endif %endif
%if 0%{!?gcc_accel:1} && %{suse_version} < 1600 %if 0%{!?gcc_accel:1}
BuildRequires: update-alternatives BuildRequires: update-alternatives
Requires(post): update-alternatives Requires(post): update-alternatives
Requires(preun): update-alternatives Requires(preun): update-alternatives
@@ -585,11 +587,11 @@ amdgcn-amdhsa,\
--enable-gnu-indirect-function \ --enable-gnu-indirect-function \
%endif %endif
%endif %endif
--program-suffix=%{binsuffix} \
%ifarch %{disable_multilib_arch} %ifarch %{disable_multilib_arch}
--disable-multilib \ --disable-multilib \
%endif %endif
%if 0%{!?gcc_target_arch:1} %if 0%{!?gcc_target_arch:1}
--program-suffix=%{binsuffix} \
%ifarch ia64 %ifarch ia64
--with-system-libunwind \ --with-system-libunwind \
%else %else
@@ -597,9 +599,6 @@ amdgcn-amdhsa,\
%endif %endif
%endif %endif
%if 0%{?gcc_target_arch:1} %if 0%{?gcc_target_arch:1}
%if 0%{?gcc_accel:1} || %{suse_version} < 1600
--program-suffix=%{binsuffix} \
%endif
--program-prefix=%{gcc_target_arch}- \ --program-prefix=%{gcc_target_arch}- \
--target=%{gcc_target_arch} \ --target=%{gcc_target_arch} \
--disable-nls \ --disable-nls \
@@ -862,7 +861,7 @@ rm -f $RPM_BUILD_ROOT%{_libdir}/libiberty.a
mkdir -p $RPM_BUILD_ROOT/%{?sysroot:%sysroot} mkdir -p $RPM_BUILD_ROOT/%{?sysroot:%sysroot}
make DESTDIR=$RPM_BUILD_ROOT install-target make DESTDIR=$RPM_BUILD_ROOT install-target
%if %{build_cp} %if %{build_cp}
# So we installed libstdc++ headers into %%prefix where they conflict # So we installed libstdc++ headers into %prefix where they conflict
# with other host compilers. Rip out the non-target specific parts # with other host compilers. Rip out the non-target specific parts
# again. Note not all cross targets support libstdc++, so create the # again. Note not all cross targets support libstdc++, so create the
# directory to make things easier. # directory to make things easier.
@@ -887,7 +886,6 @@ rm -rf $RPM_BUILD_ROOT%{_infodir}
# for accelerators remove all frontends but lto1 and also install-tools # for accelerators remove all frontends but lto1 and also install-tools
%if 0%{?gcc_accel:1} %if 0%{?gcc_accel:1}
rm -f $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch}/cc1 rm -f $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch}/cc1
rm -f $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch}/f951
rm -f $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch}/cc1plus rm -f $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch}/cc1plus
rm -rf $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch}/install-tools rm -rf $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch}/install-tools
rm -rf $RPM_BUILD_ROOT%{targetlibsubdir}/install-tools rm -rf $RPM_BUILD_ROOT%{targetlibsubdir}/install-tools
@@ -895,8 +893,6 @@ rm -rf $RPM_BUILD_ROOT%{targetlibsubdir}/install-tools
# that is the place where we later search for (only) # that is the place where we later search for (only)
( cd $RPM_BUILD_ROOT%{targetlibsubdir} && tar cf - . ) | ( cd $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch} && tar xf - ) ( cd $RPM_BUILD_ROOT%{targetlibsubdir} && tar cf - . ) | ( cd $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch} && tar xf - )
rm -rf $RPM_BUILD_ROOT%{targetlibsubdir} rm -rf $RPM_BUILD_ROOT%{targetlibsubdir}
# also remove installed libstdc++ headers
rm -rf $RPM_BUILD_ROOT%{_prefix}/include/c++
%endif %endif
# for amdgcn install the symlinks to the llvm tools # for amdgcn install the symlinks to the llvm tools
# follow alternatives symlinks to the hardcoded version requirement # follow alternatives symlinks to the hardcoded version requirement
@@ -961,7 +957,7 @@ rm -r env
# we provide update-alternatives for selecting a compiler version for # we provide update-alternatives for selecting a compiler version for
# crosses # crosses
%if 0%{!?gcc_accel:1} && %{suse_version} < 1600 %if 0%{!?gcc_accel:1}
mkdir -p %{buildroot}%{_sysconfdir}/alternatives mkdir -p %{buildroot}%{_sysconfdir}/alternatives
for ex in gcc cpp \ for ex in gcc cpp \
%if %{build_cp} %if %{build_cp}
@@ -1017,19 +1013,15 @@ fi
%endif %endif
%else %else
%{_prefix}/bin/%{gcc_target_arch}-gcc%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcc%{binsuffix}
%if %{suse_version} < 1600
%{_prefix}/bin/%{gcc_target_arch}-cpp%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-cpp%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-gcc-ar%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcc-ar%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-gcc-nm%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcc-nm%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-gcc-ranlib%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcc-ranlib%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-lto-dump%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-lto-dump%{binsuffix}
%endif
%if 0%{!?gcc_libc_bootstrap:1} && "%{cross_arch}" != "bpf" %if 0%{!?gcc_libc_bootstrap:1} && "%{cross_arch}" != "bpf"
%if %{suse_version} < 1600
%{_prefix}/bin/%{gcc_target_arch}-gcov%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcov%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-gcov-dump%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcov-dump%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-gcov-tool%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcov-tool%{binsuffix}
%endif
%{_prefix}/bin/%{gcc_target_arch}-gcov %{_prefix}/bin/%{gcc_target_arch}-gcov
%{_prefix}/bin/%{gcc_target_arch}-gcov-dump %{_prefix}/bin/%{gcc_target_arch}-gcov-dump
%{_prefix}/bin/%{gcc_target_arch}-gcov-tool %{_prefix}/bin/%{gcc_target_arch}-gcov-tool
@@ -1040,7 +1032,6 @@ fi
%{_prefix}/bin/%{gcc_target_arch}-gcc-nm %{_prefix}/bin/%{gcc_target_arch}-gcc-nm
%{_prefix}/bin/%{gcc_target_arch}-gcc-ranlib %{_prefix}/bin/%{gcc_target_arch}-gcc-ranlib
%{_prefix}/bin/%{gcc_target_arch}-lto-dump %{_prefix}/bin/%{gcc_target_arch}-lto-dump
%if %{suse_version} < 1600
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-cpp %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-cpp
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc-ar %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc-ar
@@ -1052,16 +1043,13 @@ fi
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcov-dump %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcov-dump
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcov-tool %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcov-tool
%endif %endif
%endif
%if %{build_cp} %if %{build_cp}
%{_prefix}/bin/%{gcc_target_arch}-c++
%{_prefix}/bin/%{gcc_target_arch}-g++
%if %{suse_version} < 1600
%{_prefix}/bin/%{gcc_target_arch}-c++%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-c++%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-g++%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-g++%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-c++
%{_prefix}/bin/%{gcc_target_arch}-g++
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-c++ %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-c++
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-g++ %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-g++
%endif
%if 0%{!?gcc_libc_bootstrap:1} %if 0%{!?gcc_libc_bootstrap:1}
%if "%{cross_arch}" == "avr" || 0%{?gcc_target_newlib:1} || 0%{?gcc_target_glibc:1} %if "%{cross_arch}" == "avr" || 0%{?gcc_target_newlib:1} || 0%{?gcc_target_glibc:1}
%{_prefix}/include/c++ %{_prefix}/include/c++

View File

@@ -292,24 +292,26 @@ ExclusiveArch: i586 ppc64le ppc64 x86_64 s390x aarch64 riscv64
%if "%pkgname" == "cross-ppc64-gcc49" %if "%pkgname" == "cross-ppc64-gcc49"
Obsoletes: cross-ppc-gcc49 <= 4.9.0+r209354 Obsoletes: cross-ppc-gcc49 <= 4.9.0+r209354
%endif %endif
%if 0%{!?gcc_accel:1} %if 0%{?gcc_target_newlib:1}%{?gcc_target_glibc:1} || "%{cross_arch}" == "avr"
# Generally only one cross for the same target triplet can be installed # Generally only one cross for the same target triplet can be installed
# at the same time as we are populating a non-version-specific sysroot # at the same time as we are populating a non-version-specific sysroot
Provides: %{gcc_target_arch}-gcc
Conflicts: %selfconflict %{gcc_target_arch}-gcc
%endif
%if 0%{?gcc_libc_bootstrap:1}
# The -bootstrap packages file-conflict with the non-bootstrap variants. # The -bootstrap packages file-conflict with the non-bootstrap variants.
# Even if we don't actually (want to) distribute the bootstrap variants # Even if we don't actually (want to) distribute the bootstrap variants
# the following avoids repo-checker spamming us endlessly. # the following avoids repo-checker spamming us endlessly.
Provides: %{gcc_target_arch}-gcc
Conflicts: %{gcc_target_arch}-gcc Conflicts: %{gcc_target_arch}-gcc
Conflicts: %{pkgname}-bootstrap
%endif %endif
#!BuildIgnore: gcc-PIE #!BuildIgnore: gcc-PIE
%if %{build_cp} %if 0%{build_cp:1}
# The cross compiler only packages the arch specific c++ headers, so # The cross compiler only packages the arch specific c++ headers, so
# we need to depend on the host libstdc++ devel headers (we wouldn't need # we need to depend on the host libstdc++ devel headers (we wouldn't need
# the libs, though) # the libs, though)
Requires: libstdc++6-devel-gcc13 Requires: libstdc++6-devel-gcc13
%endif %endif
%if 0%{!?gcc_accel:1} && %{suse_version} < 1600 %if 0%{!?gcc_accel:1}
BuildRequires: update-alternatives BuildRequires: update-alternatives
Requires(post): update-alternatives Requires(post): update-alternatives
Requires(preun): update-alternatives Requires(preun): update-alternatives
@@ -585,11 +587,11 @@ amdgcn-amdhsa,\
--enable-gnu-indirect-function \ --enable-gnu-indirect-function \
%endif %endif
%endif %endif
--program-suffix=%{binsuffix} \
%ifarch %{disable_multilib_arch} %ifarch %{disable_multilib_arch}
--disable-multilib \ --disable-multilib \
%endif %endif
%if 0%{!?gcc_target_arch:1} %if 0%{!?gcc_target_arch:1}
--program-suffix=%{binsuffix} \
%ifarch ia64 %ifarch ia64
--with-system-libunwind \ --with-system-libunwind \
%else %else
@@ -597,9 +599,6 @@ amdgcn-amdhsa,\
%endif %endif
%endif %endif
%if 0%{?gcc_target_arch:1} %if 0%{?gcc_target_arch:1}
%if 0%{?gcc_accel:1} || %{suse_version} < 1600
--program-suffix=%{binsuffix} \
%endif
--program-prefix=%{gcc_target_arch}- \ --program-prefix=%{gcc_target_arch}- \
--target=%{gcc_target_arch} \ --target=%{gcc_target_arch} \
--disable-nls \ --disable-nls \
@@ -862,7 +861,7 @@ rm -f $RPM_BUILD_ROOT%{_libdir}/libiberty.a
mkdir -p $RPM_BUILD_ROOT/%{?sysroot:%sysroot} mkdir -p $RPM_BUILD_ROOT/%{?sysroot:%sysroot}
make DESTDIR=$RPM_BUILD_ROOT install-target make DESTDIR=$RPM_BUILD_ROOT install-target
%if %{build_cp} %if %{build_cp}
# So we installed libstdc++ headers into %%prefix where they conflict # So we installed libstdc++ headers into %prefix where they conflict
# with other host compilers. Rip out the non-target specific parts # with other host compilers. Rip out the non-target specific parts
# again. Note not all cross targets support libstdc++, so create the # again. Note not all cross targets support libstdc++, so create the
# directory to make things easier. # directory to make things easier.
@@ -887,7 +886,6 @@ rm -rf $RPM_BUILD_ROOT%{_infodir}
# for accelerators remove all frontends but lto1 and also install-tools # for accelerators remove all frontends but lto1 and also install-tools
%if 0%{?gcc_accel:1} %if 0%{?gcc_accel:1}
rm -f $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch}/cc1 rm -f $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch}/cc1
rm -f $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch}/f951
rm -f $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch}/cc1plus rm -f $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch}/cc1plus
rm -rf $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch}/install-tools rm -rf $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch}/install-tools
rm -rf $RPM_BUILD_ROOT%{targetlibsubdir}/install-tools rm -rf $RPM_BUILD_ROOT%{targetlibsubdir}/install-tools
@@ -895,8 +893,6 @@ rm -rf $RPM_BUILD_ROOT%{targetlibsubdir}/install-tools
# that is the place where we later search for (only) # that is the place where we later search for (only)
( cd $RPM_BUILD_ROOT%{targetlibsubdir} && tar cf - . ) | ( cd $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch} && tar xf - ) ( cd $RPM_BUILD_ROOT%{targetlibsubdir} && tar cf - . ) | ( cd $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch} && tar xf - )
rm -rf $RPM_BUILD_ROOT%{targetlibsubdir} rm -rf $RPM_BUILD_ROOT%{targetlibsubdir}
# also remove installed libstdc++ headers
rm -rf $RPM_BUILD_ROOT%{_prefix}/include/c++
%endif %endif
# for amdgcn install the symlinks to the llvm tools # for amdgcn install the symlinks to the llvm tools
# follow alternatives symlinks to the hardcoded version requirement # follow alternatives symlinks to the hardcoded version requirement
@@ -961,7 +957,7 @@ rm -r env
# we provide update-alternatives for selecting a compiler version for # we provide update-alternatives for selecting a compiler version for
# crosses # crosses
%if 0%{!?gcc_accel:1} && %{suse_version} < 1600 %if 0%{!?gcc_accel:1}
mkdir -p %{buildroot}%{_sysconfdir}/alternatives mkdir -p %{buildroot}%{_sysconfdir}/alternatives
for ex in gcc cpp \ for ex in gcc cpp \
%if %{build_cp} %if %{build_cp}
@@ -1017,19 +1013,15 @@ fi
%endif %endif
%else %else
%{_prefix}/bin/%{gcc_target_arch}-gcc%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcc%{binsuffix}
%if %{suse_version} < 1600
%{_prefix}/bin/%{gcc_target_arch}-cpp%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-cpp%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-gcc-ar%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcc-ar%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-gcc-nm%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcc-nm%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-gcc-ranlib%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcc-ranlib%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-lto-dump%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-lto-dump%{binsuffix}
%endif
%if 0%{!?gcc_libc_bootstrap:1} && "%{cross_arch}" != "bpf" %if 0%{!?gcc_libc_bootstrap:1} && "%{cross_arch}" != "bpf"
%if %{suse_version} < 1600
%{_prefix}/bin/%{gcc_target_arch}-gcov%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcov%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-gcov-dump%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcov-dump%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-gcov-tool%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcov-tool%{binsuffix}
%endif
%{_prefix}/bin/%{gcc_target_arch}-gcov %{_prefix}/bin/%{gcc_target_arch}-gcov
%{_prefix}/bin/%{gcc_target_arch}-gcov-dump %{_prefix}/bin/%{gcc_target_arch}-gcov-dump
%{_prefix}/bin/%{gcc_target_arch}-gcov-tool %{_prefix}/bin/%{gcc_target_arch}-gcov-tool
@@ -1040,7 +1032,6 @@ fi
%{_prefix}/bin/%{gcc_target_arch}-gcc-nm %{_prefix}/bin/%{gcc_target_arch}-gcc-nm
%{_prefix}/bin/%{gcc_target_arch}-gcc-ranlib %{_prefix}/bin/%{gcc_target_arch}-gcc-ranlib
%{_prefix}/bin/%{gcc_target_arch}-lto-dump %{_prefix}/bin/%{gcc_target_arch}-lto-dump
%if %{suse_version} < 1600
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-cpp %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-cpp
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc-ar %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc-ar
@@ -1052,16 +1043,13 @@ fi
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcov-dump %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcov-dump
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcov-tool %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcov-tool
%endif %endif
%endif
%if %{build_cp} %if %{build_cp}
%{_prefix}/bin/%{gcc_target_arch}-c++
%{_prefix}/bin/%{gcc_target_arch}-g++
%if %{suse_version} < 1600
%{_prefix}/bin/%{gcc_target_arch}-c++%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-c++%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-g++%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-g++%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-c++
%{_prefix}/bin/%{gcc_target_arch}-g++
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-c++ %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-c++
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-g++ %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-g++
%endif
%if 0%{!?gcc_libc_bootstrap:1} %if 0%{!?gcc_libc_bootstrap:1}
%if "%{cross_arch}" == "avr" || 0%{?gcc_target_newlib:1} || 0%{?gcc_target_glibc:1} %if "%{cross_arch}" == "avr" || 0%{?gcc_target_newlib:1} || 0%{?gcc_target_glibc:1}
%{_prefix}/include/c++ %{_prefix}/include/c++

View File

@@ -292,24 +292,26 @@ ExclusiveArch: i586 ppc64le ppc64 x86_64 s390x aarch64 riscv64
%if "%pkgname" == "cross-ppc64-gcc49" %if "%pkgname" == "cross-ppc64-gcc49"
Obsoletes: cross-ppc-gcc49 <= 4.9.0+r209354 Obsoletes: cross-ppc-gcc49 <= 4.9.0+r209354
%endif %endif
%if 0%{!?gcc_accel:1} %if 0%{?gcc_target_newlib:1}%{?gcc_target_glibc:1} || "%{cross_arch}" == "avr"
# Generally only one cross for the same target triplet can be installed # Generally only one cross for the same target triplet can be installed
# at the same time as we are populating a non-version-specific sysroot # at the same time as we are populating a non-version-specific sysroot
Provides: %{gcc_target_arch}-gcc
Conflicts: %selfconflict %{gcc_target_arch}-gcc
%endif
%if 0%{?gcc_libc_bootstrap:1}
# The -bootstrap packages file-conflict with the non-bootstrap variants. # The -bootstrap packages file-conflict with the non-bootstrap variants.
# Even if we don't actually (want to) distribute the bootstrap variants # Even if we don't actually (want to) distribute the bootstrap variants
# the following avoids repo-checker spamming us endlessly. # the following avoids repo-checker spamming us endlessly.
Provides: %{gcc_target_arch}-gcc
Conflicts: %{gcc_target_arch}-gcc Conflicts: %{gcc_target_arch}-gcc
Conflicts: %{pkgname}-bootstrap
%endif %endif
#!BuildIgnore: gcc-PIE #!BuildIgnore: gcc-PIE
%if %{build_cp} %if 0%{build_cp:1}
# The cross compiler only packages the arch specific c++ headers, so # The cross compiler only packages the arch specific c++ headers, so
# we need to depend on the host libstdc++ devel headers (we wouldn't need # we need to depend on the host libstdc++ devel headers (we wouldn't need
# the libs, though) # the libs, though)
Requires: libstdc++6-devel-gcc13 Requires: libstdc++6-devel-gcc13
%endif %endif
%if 0%{!?gcc_accel:1} && %{suse_version} < 1600 %if 0%{!?gcc_accel:1}
BuildRequires: update-alternatives BuildRequires: update-alternatives
Requires(post): update-alternatives Requires(post): update-alternatives
Requires(preun): update-alternatives Requires(preun): update-alternatives
@@ -585,11 +587,11 @@ amdgcn-amdhsa,\
--enable-gnu-indirect-function \ --enable-gnu-indirect-function \
%endif %endif
%endif %endif
--program-suffix=%{binsuffix} \
%ifarch %{disable_multilib_arch} %ifarch %{disable_multilib_arch}
--disable-multilib \ --disable-multilib \
%endif %endif
%if 0%{!?gcc_target_arch:1} %if 0%{!?gcc_target_arch:1}
--program-suffix=%{binsuffix} \
%ifarch ia64 %ifarch ia64
--with-system-libunwind \ --with-system-libunwind \
%else %else
@@ -597,9 +599,6 @@ amdgcn-amdhsa,\
%endif %endif
%endif %endif
%if 0%{?gcc_target_arch:1} %if 0%{?gcc_target_arch:1}
%if 0%{?gcc_accel:1} || %{suse_version} < 1600
--program-suffix=%{binsuffix} \
%endif
--program-prefix=%{gcc_target_arch}- \ --program-prefix=%{gcc_target_arch}- \
--target=%{gcc_target_arch} \ --target=%{gcc_target_arch} \
--disable-nls \ --disable-nls \
@@ -862,7 +861,7 @@ rm -f $RPM_BUILD_ROOT%{_libdir}/libiberty.a
mkdir -p $RPM_BUILD_ROOT/%{?sysroot:%sysroot} mkdir -p $RPM_BUILD_ROOT/%{?sysroot:%sysroot}
make DESTDIR=$RPM_BUILD_ROOT install-target make DESTDIR=$RPM_BUILD_ROOT install-target
%if %{build_cp} %if %{build_cp}
# So we installed libstdc++ headers into %%prefix where they conflict # So we installed libstdc++ headers into %prefix where they conflict
# with other host compilers. Rip out the non-target specific parts # with other host compilers. Rip out the non-target specific parts
# again. Note not all cross targets support libstdc++, so create the # again. Note not all cross targets support libstdc++, so create the
# directory to make things easier. # directory to make things easier.
@@ -887,7 +886,6 @@ rm -rf $RPM_BUILD_ROOT%{_infodir}
# for accelerators remove all frontends but lto1 and also install-tools # for accelerators remove all frontends but lto1 and also install-tools
%if 0%{?gcc_accel:1} %if 0%{?gcc_accel:1}
rm -f $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch}/cc1 rm -f $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch}/cc1
rm -f $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch}/f951
rm -f $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch}/cc1plus rm -f $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch}/cc1plus
rm -rf $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch}/install-tools rm -rf $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch}/install-tools
rm -rf $RPM_BUILD_ROOT%{targetlibsubdir}/install-tools rm -rf $RPM_BUILD_ROOT%{targetlibsubdir}/install-tools
@@ -895,8 +893,6 @@ rm -rf $RPM_BUILD_ROOT%{targetlibsubdir}/install-tools
# that is the place where we later search for (only) # that is the place where we later search for (only)
( cd $RPM_BUILD_ROOT%{targetlibsubdir} && tar cf - . ) | ( cd $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch} && tar xf - ) ( cd $RPM_BUILD_ROOT%{targetlibsubdir} && tar cf - . ) | ( cd $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch} && tar xf - )
rm -rf $RPM_BUILD_ROOT%{targetlibsubdir} rm -rf $RPM_BUILD_ROOT%{targetlibsubdir}
# also remove installed libstdc++ headers
rm -rf $RPM_BUILD_ROOT%{_prefix}/include/c++
%endif %endif
# for amdgcn install the symlinks to the llvm tools # for amdgcn install the symlinks to the llvm tools
# follow alternatives symlinks to the hardcoded version requirement # follow alternatives symlinks to the hardcoded version requirement
@@ -961,7 +957,7 @@ rm -r env
# we provide update-alternatives for selecting a compiler version for # we provide update-alternatives for selecting a compiler version for
# crosses # crosses
%if 0%{!?gcc_accel:1} && %{suse_version} < 1600 %if 0%{!?gcc_accel:1}
mkdir -p %{buildroot}%{_sysconfdir}/alternatives mkdir -p %{buildroot}%{_sysconfdir}/alternatives
for ex in gcc cpp \ for ex in gcc cpp \
%if %{build_cp} %if %{build_cp}
@@ -1017,19 +1013,15 @@ fi
%endif %endif
%else %else
%{_prefix}/bin/%{gcc_target_arch}-gcc%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcc%{binsuffix}
%if %{suse_version} < 1600
%{_prefix}/bin/%{gcc_target_arch}-cpp%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-cpp%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-gcc-ar%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcc-ar%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-gcc-nm%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcc-nm%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-gcc-ranlib%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcc-ranlib%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-lto-dump%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-lto-dump%{binsuffix}
%endif
%if 0%{!?gcc_libc_bootstrap:1} && "%{cross_arch}" != "bpf" %if 0%{!?gcc_libc_bootstrap:1} && "%{cross_arch}" != "bpf"
%if %{suse_version} < 1600
%{_prefix}/bin/%{gcc_target_arch}-gcov%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcov%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-gcov-dump%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcov-dump%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-gcov-tool%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcov-tool%{binsuffix}
%endif
%{_prefix}/bin/%{gcc_target_arch}-gcov %{_prefix}/bin/%{gcc_target_arch}-gcov
%{_prefix}/bin/%{gcc_target_arch}-gcov-dump %{_prefix}/bin/%{gcc_target_arch}-gcov-dump
%{_prefix}/bin/%{gcc_target_arch}-gcov-tool %{_prefix}/bin/%{gcc_target_arch}-gcov-tool
@@ -1040,7 +1032,6 @@ fi
%{_prefix}/bin/%{gcc_target_arch}-gcc-nm %{_prefix}/bin/%{gcc_target_arch}-gcc-nm
%{_prefix}/bin/%{gcc_target_arch}-gcc-ranlib %{_prefix}/bin/%{gcc_target_arch}-gcc-ranlib
%{_prefix}/bin/%{gcc_target_arch}-lto-dump %{_prefix}/bin/%{gcc_target_arch}-lto-dump
%if %{suse_version} < 1600
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-cpp %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-cpp
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc-ar %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc-ar
@@ -1052,16 +1043,13 @@ fi
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcov-dump %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcov-dump
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcov-tool %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcov-tool
%endif %endif
%endif
%if %{build_cp} %if %{build_cp}
%{_prefix}/bin/%{gcc_target_arch}-c++
%{_prefix}/bin/%{gcc_target_arch}-g++
%if %{suse_version} < 1600
%{_prefix}/bin/%{gcc_target_arch}-c++%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-c++%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-g++%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-g++%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-c++
%{_prefix}/bin/%{gcc_target_arch}-g++
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-c++ %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-c++
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-g++ %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-g++
%endif
%if 0%{!?gcc_libc_bootstrap:1} %if 0%{!?gcc_libc_bootstrap:1}
%if "%{cross_arch}" == "avr" || 0%{?gcc_target_newlib:1} || 0%{?gcc_target_glibc:1} %if "%{cross_arch}" == "avr" || 0%{?gcc_target_newlib:1} || 0%{?gcc_target_glibc:1}
%{_prefix}/include/c++ %{_prefix}/include/c++

1086
cross-m68k-gcc13.spec Normal file

File diff suppressed because it is too large Load Diff

1086
cross-mips-gcc13.spec Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -292,24 +292,26 @@ ExclusiveArch: i586 ppc64le ppc64 x86_64 s390x aarch64 riscv64
%if "%pkgname" == "cross-ppc64-gcc49" %if "%pkgname" == "cross-ppc64-gcc49"
Obsoletes: cross-ppc-gcc49 <= 4.9.0+r209354 Obsoletes: cross-ppc-gcc49 <= 4.9.0+r209354
%endif %endif
%if 0%{!?gcc_accel:1} %if 0%{?gcc_target_newlib:1}%{?gcc_target_glibc:1} || "%{cross_arch}" == "avr"
# Generally only one cross for the same target triplet can be installed # Generally only one cross for the same target triplet can be installed
# at the same time as we are populating a non-version-specific sysroot # at the same time as we are populating a non-version-specific sysroot
Provides: %{gcc_target_arch}-gcc
Conflicts: %selfconflict %{gcc_target_arch}-gcc
%endif
%if 0%{?gcc_libc_bootstrap:1}
# The -bootstrap packages file-conflict with the non-bootstrap variants. # The -bootstrap packages file-conflict with the non-bootstrap variants.
# Even if we don't actually (want to) distribute the bootstrap variants # Even if we don't actually (want to) distribute the bootstrap variants
# the following avoids repo-checker spamming us endlessly. # the following avoids repo-checker spamming us endlessly.
Provides: %{gcc_target_arch}-gcc
Conflicts: %{gcc_target_arch}-gcc Conflicts: %{gcc_target_arch}-gcc
Conflicts: %{pkgname}-bootstrap
%endif %endif
#!BuildIgnore: gcc-PIE #!BuildIgnore: gcc-PIE
%if %{build_cp} %if 0%{build_cp:1}
# The cross compiler only packages the arch specific c++ headers, so # The cross compiler only packages the arch specific c++ headers, so
# we need to depend on the host libstdc++ devel headers (we wouldn't need # we need to depend on the host libstdc++ devel headers (we wouldn't need
# the libs, though) # the libs, though)
Requires: libstdc++6-devel-gcc13 Requires: libstdc++6-devel-gcc13
%endif %endif
%if 0%{!?gcc_accel:1} && %{suse_version} < 1600 %if 0%{!?gcc_accel:1}
BuildRequires: update-alternatives BuildRequires: update-alternatives
Requires(post): update-alternatives Requires(post): update-alternatives
Requires(preun): update-alternatives Requires(preun): update-alternatives
@@ -585,11 +587,11 @@ amdgcn-amdhsa,\
--enable-gnu-indirect-function \ --enable-gnu-indirect-function \
%endif %endif
%endif %endif
--program-suffix=%{binsuffix} \
%ifarch %{disable_multilib_arch} %ifarch %{disable_multilib_arch}
--disable-multilib \ --disable-multilib \
%endif %endif
%if 0%{!?gcc_target_arch:1} %if 0%{!?gcc_target_arch:1}
--program-suffix=%{binsuffix} \
%ifarch ia64 %ifarch ia64
--with-system-libunwind \ --with-system-libunwind \
%else %else
@@ -597,9 +599,6 @@ amdgcn-amdhsa,\
%endif %endif
%endif %endif
%if 0%{?gcc_target_arch:1} %if 0%{?gcc_target_arch:1}
%if 0%{?gcc_accel:1} || %{suse_version} < 1600
--program-suffix=%{binsuffix} \
%endif
--program-prefix=%{gcc_target_arch}- \ --program-prefix=%{gcc_target_arch}- \
--target=%{gcc_target_arch} \ --target=%{gcc_target_arch} \
--disable-nls \ --disable-nls \
@@ -862,7 +861,7 @@ rm -f $RPM_BUILD_ROOT%{_libdir}/libiberty.a
mkdir -p $RPM_BUILD_ROOT/%{?sysroot:%sysroot} mkdir -p $RPM_BUILD_ROOT/%{?sysroot:%sysroot}
make DESTDIR=$RPM_BUILD_ROOT install-target make DESTDIR=$RPM_BUILD_ROOT install-target
%if %{build_cp} %if %{build_cp}
# So we installed libstdc++ headers into %%prefix where they conflict # So we installed libstdc++ headers into %prefix where they conflict
# with other host compilers. Rip out the non-target specific parts # with other host compilers. Rip out the non-target specific parts
# again. Note not all cross targets support libstdc++, so create the # again. Note not all cross targets support libstdc++, so create the
# directory to make things easier. # directory to make things easier.
@@ -887,7 +886,6 @@ rm -rf $RPM_BUILD_ROOT%{_infodir}
# for accelerators remove all frontends but lto1 and also install-tools # for accelerators remove all frontends but lto1 and also install-tools
%if 0%{?gcc_accel:1} %if 0%{?gcc_accel:1}
rm -f $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch}/cc1 rm -f $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch}/cc1
rm -f $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch}/f951
rm -f $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch}/cc1plus rm -f $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch}/cc1plus
rm -rf $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch}/install-tools rm -rf $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch}/install-tools
rm -rf $RPM_BUILD_ROOT%{targetlibsubdir}/install-tools rm -rf $RPM_BUILD_ROOT%{targetlibsubdir}/install-tools
@@ -895,8 +893,6 @@ rm -rf $RPM_BUILD_ROOT%{targetlibsubdir}/install-tools
# that is the place where we later search for (only) # that is the place where we later search for (only)
( cd $RPM_BUILD_ROOT%{targetlibsubdir} && tar cf - . ) | ( cd $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch} && tar xf - ) ( cd $RPM_BUILD_ROOT%{targetlibsubdir} && tar cf - . ) | ( cd $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch} && tar xf - )
rm -rf $RPM_BUILD_ROOT%{targetlibsubdir} rm -rf $RPM_BUILD_ROOT%{targetlibsubdir}
# also remove installed libstdc++ headers
rm -rf $RPM_BUILD_ROOT%{_prefix}/include/c++
%endif %endif
# for amdgcn install the symlinks to the llvm tools # for amdgcn install the symlinks to the llvm tools
# follow alternatives symlinks to the hardcoded version requirement # follow alternatives symlinks to the hardcoded version requirement
@@ -961,7 +957,7 @@ rm -r env
# we provide update-alternatives for selecting a compiler version for # we provide update-alternatives for selecting a compiler version for
# crosses # crosses
%if 0%{!?gcc_accel:1} && %{suse_version} < 1600 %if 0%{!?gcc_accel:1}
mkdir -p %{buildroot}%{_sysconfdir}/alternatives mkdir -p %{buildroot}%{_sysconfdir}/alternatives
for ex in gcc cpp \ for ex in gcc cpp \
%if %{build_cp} %if %{build_cp}
@@ -1017,19 +1013,15 @@ fi
%endif %endif
%else %else
%{_prefix}/bin/%{gcc_target_arch}-gcc%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcc%{binsuffix}
%if %{suse_version} < 1600
%{_prefix}/bin/%{gcc_target_arch}-cpp%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-cpp%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-gcc-ar%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcc-ar%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-gcc-nm%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcc-nm%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-gcc-ranlib%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcc-ranlib%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-lto-dump%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-lto-dump%{binsuffix}
%endif
%if 0%{!?gcc_libc_bootstrap:1} && "%{cross_arch}" != "bpf" %if 0%{!?gcc_libc_bootstrap:1} && "%{cross_arch}" != "bpf"
%if %{suse_version} < 1600
%{_prefix}/bin/%{gcc_target_arch}-gcov%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcov%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-gcov-dump%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcov-dump%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-gcov-tool%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcov-tool%{binsuffix}
%endif
%{_prefix}/bin/%{gcc_target_arch}-gcov %{_prefix}/bin/%{gcc_target_arch}-gcov
%{_prefix}/bin/%{gcc_target_arch}-gcov-dump %{_prefix}/bin/%{gcc_target_arch}-gcov-dump
%{_prefix}/bin/%{gcc_target_arch}-gcov-tool %{_prefix}/bin/%{gcc_target_arch}-gcov-tool
@@ -1040,7 +1032,6 @@ fi
%{_prefix}/bin/%{gcc_target_arch}-gcc-nm %{_prefix}/bin/%{gcc_target_arch}-gcc-nm
%{_prefix}/bin/%{gcc_target_arch}-gcc-ranlib %{_prefix}/bin/%{gcc_target_arch}-gcc-ranlib
%{_prefix}/bin/%{gcc_target_arch}-lto-dump %{_prefix}/bin/%{gcc_target_arch}-lto-dump
%if %{suse_version} < 1600
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-cpp %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-cpp
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc-ar %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc-ar
@@ -1052,16 +1043,13 @@ fi
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcov-dump %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcov-dump
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcov-tool %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcov-tool
%endif %endif
%endif
%if %{build_cp} %if %{build_cp}
%{_prefix}/bin/%{gcc_target_arch}-c++
%{_prefix}/bin/%{gcc_target_arch}-g++
%if %{suse_version} < 1600
%{_prefix}/bin/%{gcc_target_arch}-c++%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-c++%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-g++%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-g++%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-c++
%{_prefix}/bin/%{gcc_target_arch}-g++
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-c++ %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-c++
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-g++ %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-g++
%endif
%if 0%{!?gcc_libc_bootstrap:1} %if 0%{!?gcc_libc_bootstrap:1}
%if "%{cross_arch}" == "avr" || 0%{?gcc_target_newlib:1} || 0%{?gcc_target_glibc:1} %if "%{cross_arch}" == "avr" || 0%{?gcc_target_newlib:1} || 0%{?gcc_target_glibc:1}
%{_prefix}/include/c++ %{_prefix}/include/c++

View File

@@ -19,8 +19,7 @@
%define pkgname cross-ppc64-gcc13 %define pkgname cross-ppc64-gcc13
%define cross_arch ppc64 %define cross_arch ppc64
%define gcc_target_arch powerpc64-suse-linux %define gcc_target_arch powerpc64-suse-linux
%define gcc_target_glibc 1 %define gcc_icecream 1
%define gcc_libc_bootstrap 1
# nospeccleaner # nospeccleaner
%define build_cp 0%{!?gcc_accel:1} %define build_cp 0%{!?gcc_accel:1}
@@ -293,24 +292,26 @@ ExclusiveArch: i586 ppc64le x86_64 s390x aarch64 riscv64
%if "%pkgname" == "cross-ppc64-gcc49" %if "%pkgname" == "cross-ppc64-gcc49"
Obsoletes: cross-ppc-gcc49 <= 4.9.0+r209354 Obsoletes: cross-ppc-gcc49 <= 4.9.0+r209354
%endif %endif
%if 0%{!?gcc_accel:1} %if 0%{?gcc_target_newlib:1}%{?gcc_target_glibc:1} || "%{cross_arch}" == "avr"
# Generally only one cross for the same target triplet can be installed # Generally only one cross for the same target triplet can be installed
# at the same time as we are populating a non-version-specific sysroot # at the same time as we are populating a non-version-specific sysroot
Provides: %{gcc_target_arch}-gcc
Conflicts: %selfconflict %{gcc_target_arch}-gcc
%endif
%if 0%{?gcc_libc_bootstrap:1}
# The -bootstrap packages file-conflict with the non-bootstrap variants. # The -bootstrap packages file-conflict with the non-bootstrap variants.
# Even if we don't actually (want to) distribute the bootstrap variants # Even if we don't actually (want to) distribute the bootstrap variants
# the following avoids repo-checker spamming us endlessly. # the following avoids repo-checker spamming us endlessly.
Provides: %{gcc_target_arch}-gcc
Conflicts: %{gcc_target_arch}-gcc Conflicts: %{gcc_target_arch}-gcc
Conflicts: %{pkgname}-bootstrap
%endif %endif
#!BuildIgnore: gcc-PIE #!BuildIgnore: gcc-PIE
%if %{build_cp} %if 0%{build_cp:1}
# The cross compiler only packages the arch specific c++ headers, so # The cross compiler only packages the arch specific c++ headers, so
# we need to depend on the host libstdc++ devel headers (we wouldn't need # we need to depend on the host libstdc++ devel headers (we wouldn't need
# the libs, though) # the libs, though)
Requires: libstdc++6-devel-gcc13 Requires: libstdc++6-devel-gcc13
%endif %endif
%if 0%{!?gcc_accel:1} && %{suse_version} < 1600 %if 0%{!?gcc_accel:1}
BuildRequires: update-alternatives BuildRequires: update-alternatives
Requires(post): update-alternatives Requires(post): update-alternatives
Requires(preun): update-alternatives Requires(preun): update-alternatives
@@ -586,11 +587,11 @@ amdgcn-amdhsa,\
--enable-gnu-indirect-function \ --enable-gnu-indirect-function \
%endif %endif
%endif %endif
--program-suffix=%{binsuffix} \
%ifarch %{disable_multilib_arch} %ifarch %{disable_multilib_arch}
--disable-multilib \ --disable-multilib \
%endif %endif
%if 0%{!?gcc_target_arch:1} %if 0%{!?gcc_target_arch:1}
--program-suffix=%{binsuffix} \
%ifarch ia64 %ifarch ia64
--with-system-libunwind \ --with-system-libunwind \
%else %else
@@ -598,9 +599,6 @@ amdgcn-amdhsa,\
%endif %endif
%endif %endif
%if 0%{?gcc_target_arch:1} %if 0%{?gcc_target_arch:1}
%if 0%{?gcc_accel:1} || %{suse_version} < 1600
--program-suffix=%{binsuffix} \
%endif
--program-prefix=%{gcc_target_arch}- \ --program-prefix=%{gcc_target_arch}- \
--target=%{gcc_target_arch} \ --target=%{gcc_target_arch} \
--disable-nls \ --disable-nls \
@@ -863,7 +861,7 @@ rm -f $RPM_BUILD_ROOT%{_libdir}/libiberty.a
mkdir -p $RPM_BUILD_ROOT/%{?sysroot:%sysroot} mkdir -p $RPM_BUILD_ROOT/%{?sysroot:%sysroot}
make DESTDIR=$RPM_BUILD_ROOT install-target make DESTDIR=$RPM_BUILD_ROOT install-target
%if %{build_cp} %if %{build_cp}
# So we installed libstdc++ headers into %%prefix where they conflict # So we installed libstdc++ headers into %prefix where they conflict
# with other host compilers. Rip out the non-target specific parts # with other host compilers. Rip out the non-target specific parts
# again. Note not all cross targets support libstdc++, so create the # again. Note not all cross targets support libstdc++, so create the
# directory to make things easier. # directory to make things easier.
@@ -888,7 +886,6 @@ rm -rf $RPM_BUILD_ROOT%{_infodir}
# for accelerators remove all frontends but lto1 and also install-tools # for accelerators remove all frontends but lto1 and also install-tools
%if 0%{?gcc_accel:1} %if 0%{?gcc_accel:1}
rm -f $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch}/cc1 rm -f $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch}/cc1
rm -f $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch}/f951
rm -f $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch}/cc1plus rm -f $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch}/cc1plus
rm -rf $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch}/install-tools rm -rf $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch}/install-tools
rm -rf $RPM_BUILD_ROOT%{targetlibsubdir}/install-tools rm -rf $RPM_BUILD_ROOT%{targetlibsubdir}/install-tools
@@ -896,8 +893,6 @@ rm -rf $RPM_BUILD_ROOT%{targetlibsubdir}/install-tools
# that is the place where we later search for (only) # that is the place where we later search for (only)
( cd $RPM_BUILD_ROOT%{targetlibsubdir} && tar cf - . ) | ( cd $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch} && tar xf - ) ( cd $RPM_BUILD_ROOT%{targetlibsubdir} && tar cf - . ) | ( cd $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch} && tar xf - )
rm -rf $RPM_BUILD_ROOT%{targetlibsubdir} rm -rf $RPM_BUILD_ROOT%{targetlibsubdir}
# also remove installed libstdc++ headers
rm -rf $RPM_BUILD_ROOT%{_prefix}/include/c++
%endif %endif
# for amdgcn install the symlinks to the llvm tools # for amdgcn install the symlinks to the llvm tools
# follow alternatives symlinks to the hardcoded version requirement # follow alternatives symlinks to the hardcoded version requirement
@@ -962,7 +957,7 @@ rm -r env
# we provide update-alternatives for selecting a compiler version for # we provide update-alternatives for selecting a compiler version for
# crosses # crosses
%if 0%{!?gcc_accel:1} && %{suse_version} < 1600 %if 0%{!?gcc_accel:1}
mkdir -p %{buildroot}%{_sysconfdir}/alternatives mkdir -p %{buildroot}%{_sysconfdir}/alternatives
for ex in gcc cpp \ for ex in gcc cpp \
%if %{build_cp} %if %{build_cp}
@@ -1018,19 +1013,15 @@ fi
%endif %endif
%else %else
%{_prefix}/bin/%{gcc_target_arch}-gcc%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcc%{binsuffix}
%if %{suse_version} < 1600
%{_prefix}/bin/%{gcc_target_arch}-cpp%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-cpp%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-gcc-ar%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcc-ar%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-gcc-nm%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcc-nm%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-gcc-ranlib%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcc-ranlib%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-lto-dump%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-lto-dump%{binsuffix}
%endif
%if 0%{!?gcc_libc_bootstrap:1} && "%{cross_arch}" != "bpf" %if 0%{!?gcc_libc_bootstrap:1} && "%{cross_arch}" != "bpf"
%if %{suse_version} < 1600
%{_prefix}/bin/%{gcc_target_arch}-gcov%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcov%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-gcov-dump%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcov-dump%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-gcov-tool%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcov-tool%{binsuffix}
%endif
%{_prefix}/bin/%{gcc_target_arch}-gcov %{_prefix}/bin/%{gcc_target_arch}-gcov
%{_prefix}/bin/%{gcc_target_arch}-gcov-dump %{_prefix}/bin/%{gcc_target_arch}-gcov-dump
%{_prefix}/bin/%{gcc_target_arch}-gcov-tool %{_prefix}/bin/%{gcc_target_arch}-gcov-tool
@@ -1041,7 +1032,6 @@ fi
%{_prefix}/bin/%{gcc_target_arch}-gcc-nm %{_prefix}/bin/%{gcc_target_arch}-gcc-nm
%{_prefix}/bin/%{gcc_target_arch}-gcc-ranlib %{_prefix}/bin/%{gcc_target_arch}-gcc-ranlib
%{_prefix}/bin/%{gcc_target_arch}-lto-dump %{_prefix}/bin/%{gcc_target_arch}-lto-dump
%if %{suse_version} < 1600
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-cpp %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-cpp
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc-ar %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc-ar
@@ -1053,16 +1043,13 @@ fi
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcov-dump %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcov-dump
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcov-tool %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcov-tool
%endif %endif
%endif
%if %{build_cp} %if %{build_cp}
%{_prefix}/bin/%{gcc_target_arch}-c++
%{_prefix}/bin/%{gcc_target_arch}-g++
%if %{suse_version} < 1600
%{_prefix}/bin/%{gcc_target_arch}-c++%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-c++%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-g++%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-g++%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-c++
%{_prefix}/bin/%{gcc_target_arch}-g++
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-c++ %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-c++
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-g++ %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-g++
%endif
%if 0%{!?gcc_libc_bootstrap:1} %if 0%{!?gcc_libc_bootstrap:1}
%if "%{cross_arch}" == "avr" || 0%{?gcc_target_newlib:1} || 0%{?gcc_target_glibc:1} %if "%{cross_arch}" == "avr" || 0%{?gcc_target_newlib:1} || 0%{?gcc_target_glibc:1}
%{_prefix}/include/c++ %{_prefix}/include/c++

View File

@@ -19,7 +19,6 @@
%define pkgname cross-ppc64le-gcc13-bootstrap %define pkgname cross-ppc64le-gcc13-bootstrap
%define cross_arch ppc64le %define cross_arch ppc64le
%define gcc_target_arch powerpc64le-suse-linux %define gcc_target_arch powerpc64le-suse-linux
%define gcc_target_glibc 1
%define gcc_libc_bootstrap 1 %define gcc_libc_bootstrap 1
# nospeccleaner # nospeccleaner
@@ -293,24 +292,26 @@ ExclusiveArch: i586 ppc64 x86_64 s390x aarch64 riscv64
%if "%pkgname" == "cross-ppc64-gcc49" %if "%pkgname" == "cross-ppc64-gcc49"
Obsoletes: cross-ppc-gcc49 <= 4.9.0+r209354 Obsoletes: cross-ppc-gcc49 <= 4.9.0+r209354
%endif %endif
%if 0%{!?gcc_accel:1} %if 0%{?gcc_target_newlib:1}%{?gcc_target_glibc:1} || "%{cross_arch}" == "avr"
# Generally only one cross for the same target triplet can be installed # Generally only one cross for the same target triplet can be installed
# at the same time as we are populating a non-version-specific sysroot # at the same time as we are populating a non-version-specific sysroot
Provides: %{gcc_target_arch}-gcc
Conflicts: %selfconflict %{gcc_target_arch}-gcc
%endif
%if 0%{?gcc_libc_bootstrap:1}
# The -bootstrap packages file-conflict with the non-bootstrap variants. # The -bootstrap packages file-conflict with the non-bootstrap variants.
# Even if we don't actually (want to) distribute the bootstrap variants # Even if we don't actually (want to) distribute the bootstrap variants
# the following avoids repo-checker spamming us endlessly. # the following avoids repo-checker spamming us endlessly.
Provides: %{gcc_target_arch}-gcc
Conflicts: %{gcc_target_arch}-gcc Conflicts: %{gcc_target_arch}-gcc
Conflicts: %{pkgname}-bootstrap
%endif %endif
#!BuildIgnore: gcc-PIE #!BuildIgnore: gcc-PIE
%if %{build_cp} %if 0%{build_cp:1}
# The cross compiler only packages the arch specific c++ headers, so # The cross compiler only packages the arch specific c++ headers, so
# we need to depend on the host libstdc++ devel headers (we wouldn't need # we need to depend on the host libstdc++ devel headers (we wouldn't need
# the libs, though) # the libs, though)
Requires: libstdc++6-devel-gcc13 Requires: libstdc++6-devel-gcc13
%endif %endif
%if 0%{!?gcc_accel:1} && %{suse_version} < 1600 %if 0%{!?gcc_accel:1}
BuildRequires: update-alternatives BuildRequires: update-alternatives
Requires(post): update-alternatives Requires(post): update-alternatives
Requires(preun): update-alternatives Requires(preun): update-alternatives
@@ -586,11 +587,11 @@ amdgcn-amdhsa,\
--enable-gnu-indirect-function \ --enable-gnu-indirect-function \
%endif %endif
%endif %endif
--program-suffix=%{binsuffix} \
%ifarch %{disable_multilib_arch} %ifarch %{disable_multilib_arch}
--disable-multilib \ --disable-multilib \
%endif %endif
%if 0%{!?gcc_target_arch:1} %if 0%{!?gcc_target_arch:1}
--program-suffix=%{binsuffix} \
%ifarch ia64 %ifarch ia64
--with-system-libunwind \ --with-system-libunwind \
%else %else
@@ -598,9 +599,6 @@ amdgcn-amdhsa,\
%endif %endif
%endif %endif
%if 0%{?gcc_target_arch:1} %if 0%{?gcc_target_arch:1}
%if 0%{?gcc_accel:1} || %{suse_version} < 1600
--program-suffix=%{binsuffix} \
%endif
--program-prefix=%{gcc_target_arch}- \ --program-prefix=%{gcc_target_arch}- \
--target=%{gcc_target_arch} \ --target=%{gcc_target_arch} \
--disable-nls \ --disable-nls \
@@ -863,7 +861,7 @@ rm -f $RPM_BUILD_ROOT%{_libdir}/libiberty.a
mkdir -p $RPM_BUILD_ROOT/%{?sysroot:%sysroot} mkdir -p $RPM_BUILD_ROOT/%{?sysroot:%sysroot}
make DESTDIR=$RPM_BUILD_ROOT install-target make DESTDIR=$RPM_BUILD_ROOT install-target
%if %{build_cp} %if %{build_cp}
# So we installed libstdc++ headers into %%prefix where they conflict # So we installed libstdc++ headers into %prefix where they conflict
# with other host compilers. Rip out the non-target specific parts # with other host compilers. Rip out the non-target specific parts
# again. Note not all cross targets support libstdc++, so create the # again. Note not all cross targets support libstdc++, so create the
# directory to make things easier. # directory to make things easier.
@@ -888,7 +886,6 @@ rm -rf $RPM_BUILD_ROOT%{_infodir}
# for accelerators remove all frontends but lto1 and also install-tools # for accelerators remove all frontends but lto1 and also install-tools
%if 0%{?gcc_accel:1} %if 0%{?gcc_accel:1}
rm -f $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch}/cc1 rm -f $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch}/cc1
rm -f $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch}/f951
rm -f $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch}/cc1plus rm -f $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch}/cc1plus
rm -rf $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch}/install-tools rm -rf $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch}/install-tools
rm -rf $RPM_BUILD_ROOT%{targetlibsubdir}/install-tools rm -rf $RPM_BUILD_ROOT%{targetlibsubdir}/install-tools
@@ -896,8 +893,6 @@ rm -rf $RPM_BUILD_ROOT%{targetlibsubdir}/install-tools
# that is the place where we later search for (only) # that is the place where we later search for (only)
( cd $RPM_BUILD_ROOT%{targetlibsubdir} && tar cf - . ) | ( cd $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch} && tar xf - ) ( cd $RPM_BUILD_ROOT%{targetlibsubdir} && tar cf - . ) | ( cd $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch} && tar xf - )
rm -rf $RPM_BUILD_ROOT%{targetlibsubdir} rm -rf $RPM_BUILD_ROOT%{targetlibsubdir}
# also remove installed libstdc++ headers
rm -rf $RPM_BUILD_ROOT%{_prefix}/include/c++
%endif %endif
# for amdgcn install the symlinks to the llvm tools # for amdgcn install the symlinks to the llvm tools
# follow alternatives symlinks to the hardcoded version requirement # follow alternatives symlinks to the hardcoded version requirement
@@ -962,7 +957,7 @@ rm -r env
# we provide update-alternatives for selecting a compiler version for # we provide update-alternatives for selecting a compiler version for
# crosses # crosses
%if 0%{!?gcc_accel:1} && %{suse_version} < 1600 %if 0%{!?gcc_accel:1}
mkdir -p %{buildroot}%{_sysconfdir}/alternatives mkdir -p %{buildroot}%{_sysconfdir}/alternatives
for ex in gcc cpp \ for ex in gcc cpp \
%if %{build_cp} %if %{build_cp}
@@ -1018,19 +1013,15 @@ fi
%endif %endif
%else %else
%{_prefix}/bin/%{gcc_target_arch}-gcc%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcc%{binsuffix}
%if %{suse_version} < 1600
%{_prefix}/bin/%{gcc_target_arch}-cpp%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-cpp%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-gcc-ar%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcc-ar%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-gcc-nm%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcc-nm%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-gcc-ranlib%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcc-ranlib%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-lto-dump%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-lto-dump%{binsuffix}
%endif
%if 0%{!?gcc_libc_bootstrap:1} && "%{cross_arch}" != "bpf" %if 0%{!?gcc_libc_bootstrap:1} && "%{cross_arch}" != "bpf"
%if %{suse_version} < 1600
%{_prefix}/bin/%{gcc_target_arch}-gcov%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcov%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-gcov-dump%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcov-dump%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-gcov-tool%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcov-tool%{binsuffix}
%endif
%{_prefix}/bin/%{gcc_target_arch}-gcov %{_prefix}/bin/%{gcc_target_arch}-gcov
%{_prefix}/bin/%{gcc_target_arch}-gcov-dump %{_prefix}/bin/%{gcc_target_arch}-gcov-dump
%{_prefix}/bin/%{gcc_target_arch}-gcov-tool %{_prefix}/bin/%{gcc_target_arch}-gcov-tool
@@ -1041,7 +1032,6 @@ fi
%{_prefix}/bin/%{gcc_target_arch}-gcc-nm %{_prefix}/bin/%{gcc_target_arch}-gcc-nm
%{_prefix}/bin/%{gcc_target_arch}-gcc-ranlib %{_prefix}/bin/%{gcc_target_arch}-gcc-ranlib
%{_prefix}/bin/%{gcc_target_arch}-lto-dump %{_prefix}/bin/%{gcc_target_arch}-lto-dump
%if %{suse_version} < 1600
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-cpp %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-cpp
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc-ar %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc-ar
@@ -1053,16 +1043,13 @@ fi
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcov-dump %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcov-dump
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcov-tool %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcov-tool
%endif %endif
%endif
%if %{build_cp} %if %{build_cp}
%{_prefix}/bin/%{gcc_target_arch}-c++
%{_prefix}/bin/%{gcc_target_arch}-g++
%if %{suse_version} < 1600
%{_prefix}/bin/%{gcc_target_arch}-c++%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-c++%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-g++%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-g++%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-c++
%{_prefix}/bin/%{gcc_target_arch}-g++
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-c++ %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-c++
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-g++ %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-g++
%endif
%if 0%{!?gcc_libc_bootstrap:1} %if 0%{!?gcc_libc_bootstrap:1}
%if "%{cross_arch}" == "avr" || 0%{?gcc_target_newlib:1} || 0%{?gcc_target_glibc:1} %if "%{cross_arch}" == "avr" || 0%{?gcc_target_newlib:1} || 0%{?gcc_target_glibc:1}
%{_prefix}/include/c++ %{_prefix}/include/c++

View File

@@ -292,24 +292,26 @@ ExclusiveArch: i586 ppc64 x86_64 s390x aarch64 riscv64
%if "%pkgname" == "cross-ppc64-gcc49" %if "%pkgname" == "cross-ppc64-gcc49"
Obsoletes: cross-ppc-gcc49 <= 4.9.0+r209354 Obsoletes: cross-ppc-gcc49 <= 4.9.0+r209354
%endif %endif
%if 0%{!?gcc_accel:1} %if 0%{?gcc_target_newlib:1}%{?gcc_target_glibc:1} || "%{cross_arch}" == "avr"
# Generally only one cross for the same target triplet can be installed # Generally only one cross for the same target triplet can be installed
# at the same time as we are populating a non-version-specific sysroot # at the same time as we are populating a non-version-specific sysroot
Provides: %{gcc_target_arch}-gcc
Conflicts: %selfconflict %{gcc_target_arch}-gcc
%endif
%if 0%{?gcc_libc_bootstrap:1}
# The -bootstrap packages file-conflict with the non-bootstrap variants. # The -bootstrap packages file-conflict with the non-bootstrap variants.
# Even if we don't actually (want to) distribute the bootstrap variants # Even if we don't actually (want to) distribute the bootstrap variants
# the following avoids repo-checker spamming us endlessly. # the following avoids repo-checker spamming us endlessly.
Provides: %{gcc_target_arch}-gcc
Conflicts: %{gcc_target_arch}-gcc Conflicts: %{gcc_target_arch}-gcc
Conflicts: %{pkgname}-bootstrap
%endif %endif
#!BuildIgnore: gcc-PIE #!BuildIgnore: gcc-PIE
%if %{build_cp} %if 0%{build_cp:1}
# The cross compiler only packages the arch specific c++ headers, so # The cross compiler only packages the arch specific c++ headers, so
# we need to depend on the host libstdc++ devel headers (we wouldn't need # we need to depend on the host libstdc++ devel headers (we wouldn't need
# the libs, though) # the libs, though)
Requires: libstdc++6-devel-gcc13 Requires: libstdc++6-devel-gcc13
%endif %endif
%if 0%{!?gcc_accel:1} && %{suse_version} < 1600 %if 0%{!?gcc_accel:1}
BuildRequires: update-alternatives BuildRequires: update-alternatives
Requires(post): update-alternatives Requires(post): update-alternatives
Requires(preun): update-alternatives Requires(preun): update-alternatives
@@ -585,11 +587,11 @@ amdgcn-amdhsa,\
--enable-gnu-indirect-function \ --enable-gnu-indirect-function \
%endif %endif
%endif %endif
--program-suffix=%{binsuffix} \
%ifarch %{disable_multilib_arch} %ifarch %{disable_multilib_arch}
--disable-multilib \ --disable-multilib \
%endif %endif
%if 0%{!?gcc_target_arch:1} %if 0%{!?gcc_target_arch:1}
--program-suffix=%{binsuffix} \
%ifarch ia64 %ifarch ia64
--with-system-libunwind \ --with-system-libunwind \
%else %else
@@ -597,9 +599,6 @@ amdgcn-amdhsa,\
%endif %endif
%endif %endif
%if 0%{?gcc_target_arch:1} %if 0%{?gcc_target_arch:1}
%if 0%{?gcc_accel:1} || %{suse_version} < 1600
--program-suffix=%{binsuffix} \
%endif
--program-prefix=%{gcc_target_arch}- \ --program-prefix=%{gcc_target_arch}- \
--target=%{gcc_target_arch} \ --target=%{gcc_target_arch} \
--disable-nls \ --disable-nls \
@@ -862,7 +861,7 @@ rm -f $RPM_BUILD_ROOT%{_libdir}/libiberty.a
mkdir -p $RPM_BUILD_ROOT/%{?sysroot:%sysroot} mkdir -p $RPM_BUILD_ROOT/%{?sysroot:%sysroot}
make DESTDIR=$RPM_BUILD_ROOT install-target make DESTDIR=$RPM_BUILD_ROOT install-target
%if %{build_cp} %if %{build_cp}
# So we installed libstdc++ headers into %%prefix where they conflict # So we installed libstdc++ headers into %prefix where they conflict
# with other host compilers. Rip out the non-target specific parts # with other host compilers. Rip out the non-target specific parts
# again. Note not all cross targets support libstdc++, so create the # again. Note not all cross targets support libstdc++, so create the
# directory to make things easier. # directory to make things easier.
@@ -887,7 +886,6 @@ rm -rf $RPM_BUILD_ROOT%{_infodir}
# for accelerators remove all frontends but lto1 and also install-tools # for accelerators remove all frontends but lto1 and also install-tools
%if 0%{?gcc_accel:1} %if 0%{?gcc_accel:1}
rm -f $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch}/cc1 rm -f $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch}/cc1
rm -f $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch}/f951
rm -f $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch}/cc1plus rm -f $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch}/cc1plus
rm -rf $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch}/install-tools rm -rf $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch}/install-tools
rm -rf $RPM_BUILD_ROOT%{targetlibsubdir}/install-tools rm -rf $RPM_BUILD_ROOT%{targetlibsubdir}/install-tools
@@ -895,8 +893,6 @@ rm -rf $RPM_BUILD_ROOT%{targetlibsubdir}/install-tools
# that is the place where we later search for (only) # that is the place where we later search for (only)
( cd $RPM_BUILD_ROOT%{targetlibsubdir} && tar cf - . ) | ( cd $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch} && tar xf - ) ( cd $RPM_BUILD_ROOT%{targetlibsubdir} && tar cf - . ) | ( cd $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch} && tar xf - )
rm -rf $RPM_BUILD_ROOT%{targetlibsubdir} rm -rf $RPM_BUILD_ROOT%{targetlibsubdir}
# also remove installed libstdc++ headers
rm -rf $RPM_BUILD_ROOT%{_prefix}/include/c++
%endif %endif
# for amdgcn install the symlinks to the llvm tools # for amdgcn install the symlinks to the llvm tools
# follow alternatives symlinks to the hardcoded version requirement # follow alternatives symlinks to the hardcoded version requirement
@@ -961,7 +957,7 @@ rm -r env
# we provide update-alternatives for selecting a compiler version for # we provide update-alternatives for selecting a compiler version for
# crosses # crosses
%if 0%{!?gcc_accel:1} && %{suse_version} < 1600 %if 0%{!?gcc_accel:1}
mkdir -p %{buildroot}%{_sysconfdir}/alternatives mkdir -p %{buildroot}%{_sysconfdir}/alternatives
for ex in gcc cpp \ for ex in gcc cpp \
%if %{build_cp} %if %{build_cp}
@@ -1017,19 +1013,15 @@ fi
%endif %endif
%else %else
%{_prefix}/bin/%{gcc_target_arch}-gcc%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcc%{binsuffix}
%if %{suse_version} < 1600
%{_prefix}/bin/%{gcc_target_arch}-cpp%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-cpp%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-gcc-ar%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcc-ar%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-gcc-nm%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcc-nm%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-gcc-ranlib%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcc-ranlib%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-lto-dump%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-lto-dump%{binsuffix}
%endif
%if 0%{!?gcc_libc_bootstrap:1} && "%{cross_arch}" != "bpf" %if 0%{!?gcc_libc_bootstrap:1} && "%{cross_arch}" != "bpf"
%if %{suse_version} < 1600
%{_prefix}/bin/%{gcc_target_arch}-gcov%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcov%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-gcov-dump%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcov-dump%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-gcov-tool%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcov-tool%{binsuffix}
%endif
%{_prefix}/bin/%{gcc_target_arch}-gcov %{_prefix}/bin/%{gcc_target_arch}-gcov
%{_prefix}/bin/%{gcc_target_arch}-gcov-dump %{_prefix}/bin/%{gcc_target_arch}-gcov-dump
%{_prefix}/bin/%{gcc_target_arch}-gcov-tool %{_prefix}/bin/%{gcc_target_arch}-gcov-tool
@@ -1040,7 +1032,6 @@ fi
%{_prefix}/bin/%{gcc_target_arch}-gcc-nm %{_prefix}/bin/%{gcc_target_arch}-gcc-nm
%{_prefix}/bin/%{gcc_target_arch}-gcc-ranlib %{_prefix}/bin/%{gcc_target_arch}-gcc-ranlib
%{_prefix}/bin/%{gcc_target_arch}-lto-dump %{_prefix}/bin/%{gcc_target_arch}-lto-dump
%if %{suse_version} < 1600
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-cpp %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-cpp
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc-ar %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc-ar
@@ -1052,16 +1043,13 @@ fi
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcov-dump %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcov-dump
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcov-tool %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcov-tool
%endif %endif
%endif
%if %{build_cp} %if %{build_cp}
%{_prefix}/bin/%{gcc_target_arch}-c++
%{_prefix}/bin/%{gcc_target_arch}-g++
%if %{suse_version} < 1600
%{_prefix}/bin/%{gcc_target_arch}-c++%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-c++%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-g++%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-g++%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-c++
%{_prefix}/bin/%{gcc_target_arch}-g++
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-c++ %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-c++
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-g++ %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-g++
%endif
%if 0%{!?gcc_libc_bootstrap:1} %if 0%{!?gcc_libc_bootstrap:1}
%if "%{cross_arch}" == "avr" || 0%{?gcc_target_newlib:1} || 0%{?gcc_target_glibc:1} %if "%{cross_arch}" == "avr" || 0%{?gcc_target_newlib:1} || 0%{?gcc_target_glibc:1}
%{_prefix}/include/c++ %{_prefix}/include/c++

View File

@@ -293,24 +293,26 @@ ExclusiveArch: i586 ppc64le ppc64 x86_64 s390x aarch64 riscv64
%if "%pkgname" == "cross-ppc64-gcc49" %if "%pkgname" == "cross-ppc64-gcc49"
Obsoletes: cross-ppc-gcc49 <= 4.9.0+r209354 Obsoletes: cross-ppc-gcc49 <= 4.9.0+r209354
%endif %endif
%if 0%{!?gcc_accel:1} %if 0%{?gcc_target_newlib:1}%{?gcc_target_glibc:1} || "%{cross_arch}" == "avr"
# Generally only one cross for the same target triplet can be installed # Generally only one cross for the same target triplet can be installed
# at the same time as we are populating a non-version-specific sysroot # at the same time as we are populating a non-version-specific sysroot
Provides: %{gcc_target_arch}-gcc
Conflicts: %selfconflict %{gcc_target_arch}-gcc
%endif
%if 0%{?gcc_libc_bootstrap:1}
# The -bootstrap packages file-conflict with the non-bootstrap variants. # The -bootstrap packages file-conflict with the non-bootstrap variants.
# Even if we don't actually (want to) distribute the bootstrap variants # Even if we don't actually (want to) distribute the bootstrap variants
# the following avoids repo-checker spamming us endlessly. # the following avoids repo-checker spamming us endlessly.
Provides: %{gcc_target_arch}-gcc
Conflicts: %{gcc_target_arch}-gcc Conflicts: %{gcc_target_arch}-gcc
Conflicts: %{pkgname}-bootstrap
%endif %endif
#!BuildIgnore: gcc-PIE #!BuildIgnore: gcc-PIE
%if %{build_cp} %if 0%{build_cp:1}
# The cross compiler only packages the arch specific c++ headers, so # The cross compiler only packages the arch specific c++ headers, so
# we need to depend on the host libstdc++ devel headers (we wouldn't need # we need to depend on the host libstdc++ devel headers (we wouldn't need
# the libs, though) # the libs, though)
Requires: libstdc++6-devel-gcc13 Requires: libstdc++6-devel-gcc13
%endif %endif
%if 0%{!?gcc_accel:1} && %{suse_version} < 1600 %if 0%{!?gcc_accel:1}
BuildRequires: update-alternatives BuildRequires: update-alternatives
Requires(post): update-alternatives Requires(post): update-alternatives
Requires(preun): update-alternatives Requires(preun): update-alternatives
@@ -586,11 +588,11 @@ amdgcn-amdhsa,\
--enable-gnu-indirect-function \ --enable-gnu-indirect-function \
%endif %endif
%endif %endif
--program-suffix=%{binsuffix} \
%ifarch %{disable_multilib_arch} %ifarch %{disable_multilib_arch}
--disable-multilib \ --disable-multilib \
%endif %endif
%if 0%{!?gcc_target_arch:1} %if 0%{!?gcc_target_arch:1}
--program-suffix=%{binsuffix} \
%ifarch ia64 %ifarch ia64
--with-system-libunwind \ --with-system-libunwind \
%else %else
@@ -598,9 +600,6 @@ amdgcn-amdhsa,\
%endif %endif
%endif %endif
%if 0%{?gcc_target_arch:1} %if 0%{?gcc_target_arch:1}
%if 0%{?gcc_accel:1} || %{suse_version} < 1600
--program-suffix=%{binsuffix} \
%endif
--program-prefix=%{gcc_target_arch}- \ --program-prefix=%{gcc_target_arch}- \
--target=%{gcc_target_arch} \ --target=%{gcc_target_arch} \
--disable-nls \ --disable-nls \
@@ -863,7 +862,7 @@ rm -f $RPM_BUILD_ROOT%{_libdir}/libiberty.a
mkdir -p $RPM_BUILD_ROOT/%{?sysroot:%sysroot} mkdir -p $RPM_BUILD_ROOT/%{?sysroot:%sysroot}
make DESTDIR=$RPM_BUILD_ROOT install-target make DESTDIR=$RPM_BUILD_ROOT install-target
%if %{build_cp} %if %{build_cp}
# So we installed libstdc++ headers into %%prefix where they conflict # So we installed libstdc++ headers into %prefix where they conflict
# with other host compilers. Rip out the non-target specific parts # with other host compilers. Rip out the non-target specific parts
# again. Note not all cross targets support libstdc++, so create the # again. Note not all cross targets support libstdc++, so create the
# directory to make things easier. # directory to make things easier.
@@ -888,7 +887,6 @@ rm -rf $RPM_BUILD_ROOT%{_infodir}
# for accelerators remove all frontends but lto1 and also install-tools # for accelerators remove all frontends but lto1 and also install-tools
%if 0%{?gcc_accel:1} %if 0%{?gcc_accel:1}
rm -f $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch}/cc1 rm -f $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch}/cc1
rm -f $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch}/f951
rm -f $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch}/cc1plus rm -f $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch}/cc1plus
rm -rf $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch}/install-tools rm -rf $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch}/install-tools
rm -rf $RPM_BUILD_ROOT%{targetlibsubdir}/install-tools rm -rf $RPM_BUILD_ROOT%{targetlibsubdir}/install-tools
@@ -896,8 +894,6 @@ rm -rf $RPM_BUILD_ROOT%{targetlibsubdir}/install-tools
# that is the place where we later search for (only) # that is the place where we later search for (only)
( cd $RPM_BUILD_ROOT%{targetlibsubdir} && tar cf - . ) | ( cd $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch} && tar xf - ) ( cd $RPM_BUILD_ROOT%{targetlibsubdir} && tar cf - . ) | ( cd $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch} && tar xf - )
rm -rf $RPM_BUILD_ROOT%{targetlibsubdir} rm -rf $RPM_BUILD_ROOT%{targetlibsubdir}
# also remove installed libstdc++ headers
rm -rf $RPM_BUILD_ROOT%{_prefix}/include/c++
%endif %endif
# for amdgcn install the symlinks to the llvm tools # for amdgcn install the symlinks to the llvm tools
# follow alternatives symlinks to the hardcoded version requirement # follow alternatives symlinks to the hardcoded version requirement
@@ -962,7 +958,7 @@ rm -r env
# we provide update-alternatives for selecting a compiler version for # we provide update-alternatives for selecting a compiler version for
# crosses # crosses
%if 0%{!?gcc_accel:1} && %{suse_version} < 1600 %if 0%{!?gcc_accel:1}
mkdir -p %{buildroot}%{_sysconfdir}/alternatives mkdir -p %{buildroot}%{_sysconfdir}/alternatives
for ex in gcc cpp \ for ex in gcc cpp \
%if %{build_cp} %if %{build_cp}
@@ -1018,19 +1014,15 @@ fi
%endif %endif
%else %else
%{_prefix}/bin/%{gcc_target_arch}-gcc%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcc%{binsuffix}
%if %{suse_version} < 1600
%{_prefix}/bin/%{gcc_target_arch}-cpp%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-cpp%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-gcc-ar%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcc-ar%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-gcc-nm%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcc-nm%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-gcc-ranlib%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcc-ranlib%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-lto-dump%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-lto-dump%{binsuffix}
%endif
%if 0%{!?gcc_libc_bootstrap:1} && "%{cross_arch}" != "bpf" %if 0%{!?gcc_libc_bootstrap:1} && "%{cross_arch}" != "bpf"
%if %{suse_version} < 1600
%{_prefix}/bin/%{gcc_target_arch}-gcov%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcov%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-gcov-dump%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcov-dump%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-gcov-tool%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcov-tool%{binsuffix}
%endif
%{_prefix}/bin/%{gcc_target_arch}-gcov %{_prefix}/bin/%{gcc_target_arch}-gcov
%{_prefix}/bin/%{gcc_target_arch}-gcov-dump %{_prefix}/bin/%{gcc_target_arch}-gcov-dump
%{_prefix}/bin/%{gcc_target_arch}-gcov-tool %{_prefix}/bin/%{gcc_target_arch}-gcov-tool
@@ -1041,7 +1033,6 @@ fi
%{_prefix}/bin/%{gcc_target_arch}-gcc-nm %{_prefix}/bin/%{gcc_target_arch}-gcc-nm
%{_prefix}/bin/%{gcc_target_arch}-gcc-ranlib %{_prefix}/bin/%{gcc_target_arch}-gcc-ranlib
%{_prefix}/bin/%{gcc_target_arch}-lto-dump %{_prefix}/bin/%{gcc_target_arch}-lto-dump
%if %{suse_version} < 1600
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-cpp %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-cpp
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc-ar %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc-ar
@@ -1053,16 +1044,13 @@ fi
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcov-dump %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcov-dump
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcov-tool %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcov-tool
%endif %endif
%endif
%if %{build_cp} %if %{build_cp}
%{_prefix}/bin/%{gcc_target_arch}-c++
%{_prefix}/bin/%{gcc_target_arch}-g++
%if %{suse_version} < 1600
%{_prefix}/bin/%{gcc_target_arch}-c++%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-c++%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-g++%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-g++%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-c++
%{_prefix}/bin/%{gcc_target_arch}-g++
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-c++ %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-c++
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-g++ %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-g++
%endif
%if 0%{!?gcc_libc_bootstrap:1} %if 0%{!?gcc_libc_bootstrap:1}
%if "%{cross_arch}" == "avr" || 0%{?gcc_target_newlib:1} || 0%{?gcc_target_glibc:1} %if "%{cross_arch}" == "avr" || 0%{?gcc_target_newlib:1} || 0%{?gcc_target_glibc:1}
%{_prefix}/include/c++ %{_prefix}/include/c++

View File

@@ -292,24 +292,26 @@ ExclusiveArch: i586 ppc64le ppc64 x86_64 s390x aarch64 riscv64
%if "%pkgname" == "cross-ppc64-gcc49" %if "%pkgname" == "cross-ppc64-gcc49"
Obsoletes: cross-ppc-gcc49 <= 4.9.0+r209354 Obsoletes: cross-ppc-gcc49 <= 4.9.0+r209354
%endif %endif
%if 0%{!?gcc_accel:1} %if 0%{?gcc_target_newlib:1}%{?gcc_target_glibc:1} || "%{cross_arch}" == "avr"
# Generally only one cross for the same target triplet can be installed # Generally only one cross for the same target triplet can be installed
# at the same time as we are populating a non-version-specific sysroot # at the same time as we are populating a non-version-specific sysroot
Provides: %{gcc_target_arch}-gcc
Conflicts: %selfconflict %{gcc_target_arch}-gcc
%endif
%if 0%{?gcc_libc_bootstrap:1}
# The -bootstrap packages file-conflict with the non-bootstrap variants. # The -bootstrap packages file-conflict with the non-bootstrap variants.
# Even if we don't actually (want to) distribute the bootstrap variants # Even if we don't actually (want to) distribute the bootstrap variants
# the following avoids repo-checker spamming us endlessly. # the following avoids repo-checker spamming us endlessly.
Provides: %{gcc_target_arch}-gcc
Conflicts: %{gcc_target_arch}-gcc Conflicts: %{gcc_target_arch}-gcc
Conflicts: %{pkgname}-bootstrap
%endif %endif
#!BuildIgnore: gcc-PIE #!BuildIgnore: gcc-PIE
%if %{build_cp} %if 0%{build_cp:1}
# The cross compiler only packages the arch specific c++ headers, so # The cross compiler only packages the arch specific c++ headers, so
# we need to depend on the host libstdc++ devel headers (we wouldn't need # we need to depend on the host libstdc++ devel headers (we wouldn't need
# the libs, though) # the libs, though)
Requires: libstdc++6-devel-gcc13 Requires: libstdc++6-devel-gcc13
%endif %endif
%if 0%{!?gcc_accel:1} && %{suse_version} < 1600 %if 0%{!?gcc_accel:1}
BuildRequires: update-alternatives BuildRequires: update-alternatives
Requires(post): update-alternatives Requires(post): update-alternatives
Requires(preun): update-alternatives Requires(preun): update-alternatives
@@ -585,11 +587,11 @@ amdgcn-amdhsa,\
--enable-gnu-indirect-function \ --enable-gnu-indirect-function \
%endif %endif
%endif %endif
--program-suffix=%{binsuffix} \
%ifarch %{disable_multilib_arch} %ifarch %{disable_multilib_arch}
--disable-multilib \ --disable-multilib \
%endif %endif
%if 0%{!?gcc_target_arch:1} %if 0%{!?gcc_target_arch:1}
--program-suffix=%{binsuffix} \
%ifarch ia64 %ifarch ia64
--with-system-libunwind \ --with-system-libunwind \
%else %else
@@ -597,9 +599,6 @@ amdgcn-amdhsa,\
%endif %endif
%endif %endif
%if 0%{?gcc_target_arch:1} %if 0%{?gcc_target_arch:1}
%if 0%{?gcc_accel:1} || %{suse_version} < 1600
--program-suffix=%{binsuffix} \
%endif
--program-prefix=%{gcc_target_arch}- \ --program-prefix=%{gcc_target_arch}- \
--target=%{gcc_target_arch} \ --target=%{gcc_target_arch} \
--disable-nls \ --disable-nls \
@@ -862,7 +861,7 @@ rm -f $RPM_BUILD_ROOT%{_libdir}/libiberty.a
mkdir -p $RPM_BUILD_ROOT/%{?sysroot:%sysroot} mkdir -p $RPM_BUILD_ROOT/%{?sysroot:%sysroot}
make DESTDIR=$RPM_BUILD_ROOT install-target make DESTDIR=$RPM_BUILD_ROOT install-target
%if %{build_cp} %if %{build_cp}
# So we installed libstdc++ headers into %%prefix where they conflict # So we installed libstdc++ headers into %prefix where they conflict
# with other host compilers. Rip out the non-target specific parts # with other host compilers. Rip out the non-target specific parts
# again. Note not all cross targets support libstdc++, so create the # again. Note not all cross targets support libstdc++, so create the
# directory to make things easier. # directory to make things easier.
@@ -887,7 +886,6 @@ rm -rf $RPM_BUILD_ROOT%{_infodir}
# for accelerators remove all frontends but lto1 and also install-tools # for accelerators remove all frontends but lto1 and also install-tools
%if 0%{?gcc_accel:1} %if 0%{?gcc_accel:1}
rm -f $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch}/cc1 rm -f $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch}/cc1
rm -f $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch}/f951
rm -f $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch}/cc1plus rm -f $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch}/cc1plus
rm -rf $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch}/install-tools rm -rf $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch}/install-tools
rm -rf $RPM_BUILD_ROOT%{targetlibsubdir}/install-tools rm -rf $RPM_BUILD_ROOT%{targetlibsubdir}/install-tools
@@ -895,8 +893,6 @@ rm -rf $RPM_BUILD_ROOT%{targetlibsubdir}/install-tools
# that is the place where we later search for (only) # that is the place where we later search for (only)
( cd $RPM_BUILD_ROOT%{targetlibsubdir} && tar cf - . ) | ( cd $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch} && tar xf - ) ( cd $RPM_BUILD_ROOT%{targetlibsubdir} && tar cf - . ) | ( cd $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch} && tar xf - )
rm -rf $RPM_BUILD_ROOT%{targetlibsubdir} rm -rf $RPM_BUILD_ROOT%{targetlibsubdir}
# also remove installed libstdc++ headers
rm -rf $RPM_BUILD_ROOT%{_prefix}/include/c++
%endif %endif
# for amdgcn install the symlinks to the llvm tools # for amdgcn install the symlinks to the llvm tools
# follow alternatives symlinks to the hardcoded version requirement # follow alternatives symlinks to the hardcoded version requirement
@@ -961,7 +957,7 @@ rm -r env
# we provide update-alternatives for selecting a compiler version for # we provide update-alternatives for selecting a compiler version for
# crosses # crosses
%if 0%{!?gcc_accel:1} && %{suse_version} < 1600 %if 0%{!?gcc_accel:1}
mkdir -p %{buildroot}%{_sysconfdir}/alternatives mkdir -p %{buildroot}%{_sysconfdir}/alternatives
for ex in gcc cpp \ for ex in gcc cpp \
%if %{build_cp} %if %{build_cp}
@@ -1017,19 +1013,15 @@ fi
%endif %endif
%else %else
%{_prefix}/bin/%{gcc_target_arch}-gcc%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcc%{binsuffix}
%if %{suse_version} < 1600
%{_prefix}/bin/%{gcc_target_arch}-cpp%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-cpp%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-gcc-ar%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcc-ar%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-gcc-nm%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcc-nm%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-gcc-ranlib%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcc-ranlib%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-lto-dump%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-lto-dump%{binsuffix}
%endif
%if 0%{!?gcc_libc_bootstrap:1} && "%{cross_arch}" != "bpf" %if 0%{!?gcc_libc_bootstrap:1} && "%{cross_arch}" != "bpf"
%if %{suse_version} < 1600
%{_prefix}/bin/%{gcc_target_arch}-gcov%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcov%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-gcov-dump%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcov-dump%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-gcov-tool%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcov-tool%{binsuffix}
%endif
%{_prefix}/bin/%{gcc_target_arch}-gcov %{_prefix}/bin/%{gcc_target_arch}-gcov
%{_prefix}/bin/%{gcc_target_arch}-gcov-dump %{_prefix}/bin/%{gcc_target_arch}-gcov-dump
%{_prefix}/bin/%{gcc_target_arch}-gcov-tool %{_prefix}/bin/%{gcc_target_arch}-gcov-tool
@@ -1040,7 +1032,6 @@ fi
%{_prefix}/bin/%{gcc_target_arch}-gcc-nm %{_prefix}/bin/%{gcc_target_arch}-gcc-nm
%{_prefix}/bin/%{gcc_target_arch}-gcc-ranlib %{_prefix}/bin/%{gcc_target_arch}-gcc-ranlib
%{_prefix}/bin/%{gcc_target_arch}-lto-dump %{_prefix}/bin/%{gcc_target_arch}-lto-dump
%if %{suse_version} < 1600
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-cpp %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-cpp
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc-ar %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc-ar
@@ -1052,16 +1043,13 @@ fi
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcov-dump %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcov-dump
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcov-tool %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcov-tool
%endif %endif
%endif
%if %{build_cp} %if %{build_cp}
%{_prefix}/bin/%{gcc_target_arch}-c++
%{_prefix}/bin/%{gcc_target_arch}-g++
%if %{suse_version} < 1600
%{_prefix}/bin/%{gcc_target_arch}-c++%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-c++%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-g++%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-g++%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-c++
%{_prefix}/bin/%{gcc_target_arch}-g++
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-c++ %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-c++
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-g++ %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-g++
%endif
%if 0%{!?gcc_libc_bootstrap:1} %if 0%{!?gcc_libc_bootstrap:1}
%if "%{cross_arch}" == "avr" || 0%{?gcc_target_newlib:1} || 0%{?gcc_target_glibc:1} %if "%{cross_arch}" == "avr" || 0%{?gcc_target_newlib:1} || 0%{?gcc_target_glibc:1}
%{_prefix}/include/c++ %{_prefix}/include/c++

View File

@@ -293,24 +293,26 @@ ExclusiveArch: i586 ppc64le ppc64 x86_64 s390x aarch64
%if "%pkgname" == "cross-ppc64-gcc49" %if "%pkgname" == "cross-ppc64-gcc49"
Obsoletes: cross-ppc-gcc49 <= 4.9.0+r209354 Obsoletes: cross-ppc-gcc49 <= 4.9.0+r209354
%endif %endif
%if 0%{!?gcc_accel:1} %if 0%{?gcc_target_newlib:1}%{?gcc_target_glibc:1} || "%{cross_arch}" == "avr"
# Generally only one cross for the same target triplet can be installed # Generally only one cross for the same target triplet can be installed
# at the same time as we are populating a non-version-specific sysroot # at the same time as we are populating a non-version-specific sysroot
Provides: %{gcc_target_arch}-gcc
Conflicts: %selfconflict %{gcc_target_arch}-gcc
%endif
%if 0%{?gcc_libc_bootstrap:1}
# The -bootstrap packages file-conflict with the non-bootstrap variants. # The -bootstrap packages file-conflict with the non-bootstrap variants.
# Even if we don't actually (want to) distribute the bootstrap variants # Even if we don't actually (want to) distribute the bootstrap variants
# the following avoids repo-checker spamming us endlessly. # the following avoids repo-checker spamming us endlessly.
Provides: %{gcc_target_arch}-gcc
Conflicts: %{gcc_target_arch}-gcc Conflicts: %{gcc_target_arch}-gcc
Conflicts: %{pkgname}-bootstrap
%endif %endif
#!BuildIgnore: gcc-PIE #!BuildIgnore: gcc-PIE
%if %{build_cp} %if 0%{build_cp:1}
# The cross compiler only packages the arch specific c++ headers, so # The cross compiler only packages the arch specific c++ headers, so
# we need to depend on the host libstdc++ devel headers (we wouldn't need # we need to depend on the host libstdc++ devel headers (we wouldn't need
# the libs, though) # the libs, though)
Requires: libstdc++6-devel-gcc13 Requires: libstdc++6-devel-gcc13
%endif %endif
%if 0%{!?gcc_accel:1} && %{suse_version} < 1600 %if 0%{!?gcc_accel:1}
BuildRequires: update-alternatives BuildRequires: update-alternatives
Requires(post): update-alternatives Requires(post): update-alternatives
Requires(preun): update-alternatives Requires(preun): update-alternatives
@@ -586,11 +588,11 @@ amdgcn-amdhsa,\
--enable-gnu-indirect-function \ --enable-gnu-indirect-function \
%endif %endif
%endif %endif
--program-suffix=%{binsuffix} \
%ifarch %{disable_multilib_arch} %ifarch %{disable_multilib_arch}
--disable-multilib \ --disable-multilib \
%endif %endif
%if 0%{!?gcc_target_arch:1} %if 0%{!?gcc_target_arch:1}
--program-suffix=%{binsuffix} \
%ifarch ia64 %ifarch ia64
--with-system-libunwind \ --with-system-libunwind \
%else %else
@@ -598,9 +600,6 @@ amdgcn-amdhsa,\
%endif %endif
%endif %endif
%if 0%{?gcc_target_arch:1} %if 0%{?gcc_target_arch:1}
%if 0%{?gcc_accel:1} || %{suse_version} < 1600
--program-suffix=%{binsuffix} \
%endif
--program-prefix=%{gcc_target_arch}- \ --program-prefix=%{gcc_target_arch}- \
--target=%{gcc_target_arch} \ --target=%{gcc_target_arch} \
--disable-nls \ --disable-nls \
@@ -863,7 +862,7 @@ rm -f $RPM_BUILD_ROOT%{_libdir}/libiberty.a
mkdir -p $RPM_BUILD_ROOT/%{?sysroot:%sysroot} mkdir -p $RPM_BUILD_ROOT/%{?sysroot:%sysroot}
make DESTDIR=$RPM_BUILD_ROOT install-target make DESTDIR=$RPM_BUILD_ROOT install-target
%if %{build_cp} %if %{build_cp}
# So we installed libstdc++ headers into %%prefix where they conflict # So we installed libstdc++ headers into %prefix where they conflict
# with other host compilers. Rip out the non-target specific parts # with other host compilers. Rip out the non-target specific parts
# again. Note not all cross targets support libstdc++, so create the # again. Note not all cross targets support libstdc++, so create the
# directory to make things easier. # directory to make things easier.
@@ -888,7 +887,6 @@ rm -rf $RPM_BUILD_ROOT%{_infodir}
# for accelerators remove all frontends but lto1 and also install-tools # for accelerators remove all frontends but lto1 and also install-tools
%if 0%{?gcc_accel:1} %if 0%{?gcc_accel:1}
rm -f $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch}/cc1 rm -f $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch}/cc1
rm -f $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch}/f951
rm -f $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch}/cc1plus rm -f $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch}/cc1plus
rm -rf $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch}/install-tools rm -rf $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch}/install-tools
rm -rf $RPM_BUILD_ROOT%{targetlibsubdir}/install-tools rm -rf $RPM_BUILD_ROOT%{targetlibsubdir}/install-tools
@@ -896,8 +894,6 @@ rm -rf $RPM_BUILD_ROOT%{targetlibsubdir}/install-tools
# that is the place where we later search for (only) # that is the place where we later search for (only)
( cd $RPM_BUILD_ROOT%{targetlibsubdir} && tar cf - . ) | ( cd $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch} && tar xf - ) ( cd $RPM_BUILD_ROOT%{targetlibsubdir} && tar cf - . ) | ( cd $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch} && tar xf - )
rm -rf $RPM_BUILD_ROOT%{targetlibsubdir} rm -rf $RPM_BUILD_ROOT%{targetlibsubdir}
# also remove installed libstdc++ headers
rm -rf $RPM_BUILD_ROOT%{_prefix}/include/c++
%endif %endif
# for amdgcn install the symlinks to the llvm tools # for amdgcn install the symlinks to the llvm tools
# follow alternatives symlinks to the hardcoded version requirement # follow alternatives symlinks to the hardcoded version requirement
@@ -962,7 +958,7 @@ rm -r env
# we provide update-alternatives for selecting a compiler version for # we provide update-alternatives for selecting a compiler version for
# crosses # crosses
%if 0%{!?gcc_accel:1} && %{suse_version} < 1600 %if 0%{!?gcc_accel:1}
mkdir -p %{buildroot}%{_sysconfdir}/alternatives mkdir -p %{buildroot}%{_sysconfdir}/alternatives
for ex in gcc cpp \ for ex in gcc cpp \
%if %{build_cp} %if %{build_cp}
@@ -1018,19 +1014,15 @@ fi
%endif %endif
%else %else
%{_prefix}/bin/%{gcc_target_arch}-gcc%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcc%{binsuffix}
%if %{suse_version} < 1600
%{_prefix}/bin/%{gcc_target_arch}-cpp%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-cpp%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-gcc-ar%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcc-ar%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-gcc-nm%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcc-nm%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-gcc-ranlib%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcc-ranlib%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-lto-dump%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-lto-dump%{binsuffix}
%endif
%if 0%{!?gcc_libc_bootstrap:1} && "%{cross_arch}" != "bpf" %if 0%{!?gcc_libc_bootstrap:1} && "%{cross_arch}" != "bpf"
%if %{suse_version} < 1600
%{_prefix}/bin/%{gcc_target_arch}-gcov%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcov%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-gcov-dump%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcov-dump%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-gcov-tool%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcov-tool%{binsuffix}
%endif
%{_prefix}/bin/%{gcc_target_arch}-gcov %{_prefix}/bin/%{gcc_target_arch}-gcov
%{_prefix}/bin/%{gcc_target_arch}-gcov-dump %{_prefix}/bin/%{gcc_target_arch}-gcov-dump
%{_prefix}/bin/%{gcc_target_arch}-gcov-tool %{_prefix}/bin/%{gcc_target_arch}-gcov-tool
@@ -1041,7 +1033,6 @@ fi
%{_prefix}/bin/%{gcc_target_arch}-gcc-nm %{_prefix}/bin/%{gcc_target_arch}-gcc-nm
%{_prefix}/bin/%{gcc_target_arch}-gcc-ranlib %{_prefix}/bin/%{gcc_target_arch}-gcc-ranlib
%{_prefix}/bin/%{gcc_target_arch}-lto-dump %{_prefix}/bin/%{gcc_target_arch}-lto-dump
%if %{suse_version} < 1600
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-cpp %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-cpp
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc-ar %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc-ar
@@ -1053,16 +1044,13 @@ fi
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcov-dump %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcov-dump
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcov-tool %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcov-tool
%endif %endif
%endif
%if %{build_cp} %if %{build_cp}
%{_prefix}/bin/%{gcc_target_arch}-c++
%{_prefix}/bin/%{gcc_target_arch}-g++
%if %{suse_version} < 1600
%{_prefix}/bin/%{gcc_target_arch}-c++%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-c++%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-g++%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-g++%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-c++
%{_prefix}/bin/%{gcc_target_arch}-g++
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-c++ %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-c++
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-g++ %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-g++
%endif
%if 0%{!?gcc_libc_bootstrap:1} %if 0%{!?gcc_libc_bootstrap:1}
%if "%{cross_arch}" == "avr" || 0%{?gcc_target_newlib:1} || 0%{?gcc_target_glibc:1} %if "%{cross_arch}" == "avr" || 0%{?gcc_target_newlib:1} || 0%{?gcc_target_glibc:1}
%{_prefix}/include/c++ %{_prefix}/include/c++

View File

@@ -292,24 +292,26 @@ ExclusiveArch: i586 ppc64le ppc64 x86_64 s390x aarch64
%if "%pkgname" == "cross-ppc64-gcc49" %if "%pkgname" == "cross-ppc64-gcc49"
Obsoletes: cross-ppc-gcc49 <= 4.9.0+r209354 Obsoletes: cross-ppc-gcc49 <= 4.9.0+r209354
%endif %endif
%if 0%{!?gcc_accel:1} %if 0%{?gcc_target_newlib:1}%{?gcc_target_glibc:1} || "%{cross_arch}" == "avr"
# Generally only one cross for the same target triplet can be installed # Generally only one cross for the same target triplet can be installed
# at the same time as we are populating a non-version-specific sysroot # at the same time as we are populating a non-version-specific sysroot
Provides: %{gcc_target_arch}-gcc
Conflicts: %selfconflict %{gcc_target_arch}-gcc
%endif
%if 0%{?gcc_libc_bootstrap:1}
# The -bootstrap packages file-conflict with the non-bootstrap variants. # The -bootstrap packages file-conflict with the non-bootstrap variants.
# Even if we don't actually (want to) distribute the bootstrap variants # Even if we don't actually (want to) distribute the bootstrap variants
# the following avoids repo-checker spamming us endlessly. # the following avoids repo-checker spamming us endlessly.
Provides: %{gcc_target_arch}-gcc
Conflicts: %{gcc_target_arch}-gcc Conflicts: %{gcc_target_arch}-gcc
Conflicts: %{pkgname}-bootstrap
%endif %endif
#!BuildIgnore: gcc-PIE #!BuildIgnore: gcc-PIE
%if %{build_cp} %if 0%{build_cp:1}
# The cross compiler only packages the arch specific c++ headers, so # The cross compiler only packages the arch specific c++ headers, so
# we need to depend on the host libstdc++ devel headers (we wouldn't need # we need to depend on the host libstdc++ devel headers (we wouldn't need
# the libs, though) # the libs, though)
Requires: libstdc++6-devel-gcc13 Requires: libstdc++6-devel-gcc13
%endif %endif
%if 0%{!?gcc_accel:1} && %{suse_version} < 1600 %if 0%{!?gcc_accel:1}
BuildRequires: update-alternatives BuildRequires: update-alternatives
Requires(post): update-alternatives Requires(post): update-alternatives
Requires(preun): update-alternatives Requires(preun): update-alternatives
@@ -585,11 +587,11 @@ amdgcn-amdhsa,\
--enable-gnu-indirect-function \ --enable-gnu-indirect-function \
%endif %endif
%endif %endif
--program-suffix=%{binsuffix} \
%ifarch %{disable_multilib_arch} %ifarch %{disable_multilib_arch}
--disable-multilib \ --disable-multilib \
%endif %endif
%if 0%{!?gcc_target_arch:1} %if 0%{!?gcc_target_arch:1}
--program-suffix=%{binsuffix} \
%ifarch ia64 %ifarch ia64
--with-system-libunwind \ --with-system-libunwind \
%else %else
@@ -597,9 +599,6 @@ amdgcn-amdhsa,\
%endif %endif
%endif %endif
%if 0%{?gcc_target_arch:1} %if 0%{?gcc_target_arch:1}
%if 0%{?gcc_accel:1} || %{suse_version} < 1600
--program-suffix=%{binsuffix} \
%endif
--program-prefix=%{gcc_target_arch}- \ --program-prefix=%{gcc_target_arch}- \
--target=%{gcc_target_arch} \ --target=%{gcc_target_arch} \
--disable-nls \ --disable-nls \
@@ -862,7 +861,7 @@ rm -f $RPM_BUILD_ROOT%{_libdir}/libiberty.a
mkdir -p $RPM_BUILD_ROOT/%{?sysroot:%sysroot} mkdir -p $RPM_BUILD_ROOT/%{?sysroot:%sysroot}
make DESTDIR=$RPM_BUILD_ROOT install-target make DESTDIR=$RPM_BUILD_ROOT install-target
%if %{build_cp} %if %{build_cp}
# So we installed libstdc++ headers into %%prefix where they conflict # So we installed libstdc++ headers into %prefix where they conflict
# with other host compilers. Rip out the non-target specific parts # with other host compilers. Rip out the non-target specific parts
# again. Note not all cross targets support libstdc++, so create the # again. Note not all cross targets support libstdc++, so create the
# directory to make things easier. # directory to make things easier.
@@ -887,7 +886,6 @@ rm -rf $RPM_BUILD_ROOT%{_infodir}
# for accelerators remove all frontends but lto1 and also install-tools # for accelerators remove all frontends but lto1 and also install-tools
%if 0%{?gcc_accel:1} %if 0%{?gcc_accel:1}
rm -f $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch}/cc1 rm -f $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch}/cc1
rm -f $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch}/f951
rm -f $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch}/cc1plus rm -f $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch}/cc1plus
rm -rf $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch}/install-tools rm -rf $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch}/install-tools
rm -rf $RPM_BUILD_ROOT%{targetlibsubdir}/install-tools rm -rf $RPM_BUILD_ROOT%{targetlibsubdir}/install-tools
@@ -895,8 +893,6 @@ rm -rf $RPM_BUILD_ROOT%{targetlibsubdir}/install-tools
# that is the place where we later search for (only) # that is the place where we later search for (only)
( cd $RPM_BUILD_ROOT%{targetlibsubdir} && tar cf - . ) | ( cd $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch} && tar xf - ) ( cd $RPM_BUILD_ROOT%{targetlibsubdir} && tar cf - . ) | ( cd $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch} && tar xf - )
rm -rf $RPM_BUILD_ROOT%{targetlibsubdir} rm -rf $RPM_BUILD_ROOT%{targetlibsubdir}
# also remove installed libstdc++ headers
rm -rf $RPM_BUILD_ROOT%{_prefix}/include/c++
%endif %endif
# for amdgcn install the symlinks to the llvm tools # for amdgcn install the symlinks to the llvm tools
# follow alternatives symlinks to the hardcoded version requirement # follow alternatives symlinks to the hardcoded version requirement
@@ -961,7 +957,7 @@ rm -r env
# we provide update-alternatives for selecting a compiler version for # we provide update-alternatives for selecting a compiler version for
# crosses # crosses
%if 0%{!?gcc_accel:1} && %{suse_version} < 1600 %if 0%{!?gcc_accel:1}
mkdir -p %{buildroot}%{_sysconfdir}/alternatives mkdir -p %{buildroot}%{_sysconfdir}/alternatives
for ex in gcc cpp \ for ex in gcc cpp \
%if %{build_cp} %if %{build_cp}
@@ -1017,19 +1013,15 @@ fi
%endif %endif
%else %else
%{_prefix}/bin/%{gcc_target_arch}-gcc%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcc%{binsuffix}
%if %{suse_version} < 1600
%{_prefix}/bin/%{gcc_target_arch}-cpp%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-cpp%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-gcc-ar%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcc-ar%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-gcc-nm%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcc-nm%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-gcc-ranlib%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcc-ranlib%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-lto-dump%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-lto-dump%{binsuffix}
%endif
%if 0%{!?gcc_libc_bootstrap:1} && "%{cross_arch}" != "bpf" %if 0%{!?gcc_libc_bootstrap:1} && "%{cross_arch}" != "bpf"
%if %{suse_version} < 1600
%{_prefix}/bin/%{gcc_target_arch}-gcov%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcov%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-gcov-dump%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcov-dump%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-gcov-tool%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcov-tool%{binsuffix}
%endif
%{_prefix}/bin/%{gcc_target_arch}-gcov %{_prefix}/bin/%{gcc_target_arch}-gcov
%{_prefix}/bin/%{gcc_target_arch}-gcov-dump %{_prefix}/bin/%{gcc_target_arch}-gcov-dump
%{_prefix}/bin/%{gcc_target_arch}-gcov-tool %{_prefix}/bin/%{gcc_target_arch}-gcov-tool
@@ -1040,7 +1032,6 @@ fi
%{_prefix}/bin/%{gcc_target_arch}-gcc-nm %{_prefix}/bin/%{gcc_target_arch}-gcc-nm
%{_prefix}/bin/%{gcc_target_arch}-gcc-ranlib %{_prefix}/bin/%{gcc_target_arch}-gcc-ranlib
%{_prefix}/bin/%{gcc_target_arch}-lto-dump %{_prefix}/bin/%{gcc_target_arch}-lto-dump
%if %{suse_version} < 1600
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-cpp %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-cpp
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc-ar %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc-ar
@@ -1052,16 +1043,13 @@ fi
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcov-dump %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcov-dump
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcov-tool %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcov-tool
%endif %endif
%endif
%if %{build_cp} %if %{build_cp}
%{_prefix}/bin/%{gcc_target_arch}-c++
%{_prefix}/bin/%{gcc_target_arch}-g++
%if %{suse_version} < 1600
%{_prefix}/bin/%{gcc_target_arch}-c++%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-c++%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-g++%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-g++%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-c++
%{_prefix}/bin/%{gcc_target_arch}-g++
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-c++ %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-c++
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-g++ %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-g++
%endif
%if 0%{!?gcc_libc_bootstrap:1} %if 0%{!?gcc_libc_bootstrap:1}
%if "%{cross_arch}" == "avr" || 0%{?gcc_target_newlib:1} || 0%{?gcc_target_glibc:1} %if "%{cross_arch}" == "avr" || 0%{?gcc_target_newlib:1} || 0%{?gcc_target_glibc:1}
%{_prefix}/include/c++ %{_prefix}/include/c++

View File

@@ -19,7 +19,6 @@
%define pkgname cross-riscv64-gcc13-bootstrap %define pkgname cross-riscv64-gcc13-bootstrap
%define cross_arch riscv64 %define cross_arch riscv64
%define gcc_target_arch riscv64-suse-linux %define gcc_target_arch riscv64-suse-linux
%define gcc_target_glibc 1
%define gcc_libc_bootstrap 1 %define gcc_libc_bootstrap 1
# nospeccleaner # nospeccleaner
@@ -293,24 +292,26 @@ ExclusiveArch: i586 ppc64le ppc64 x86_64 s390x aarch64
%if "%pkgname" == "cross-ppc64-gcc49" %if "%pkgname" == "cross-ppc64-gcc49"
Obsoletes: cross-ppc-gcc49 <= 4.9.0+r209354 Obsoletes: cross-ppc-gcc49 <= 4.9.0+r209354
%endif %endif
%if 0%{!?gcc_accel:1} %if 0%{?gcc_target_newlib:1}%{?gcc_target_glibc:1} || "%{cross_arch}" == "avr"
# Generally only one cross for the same target triplet can be installed # Generally only one cross for the same target triplet can be installed
# at the same time as we are populating a non-version-specific sysroot # at the same time as we are populating a non-version-specific sysroot
Provides: %{gcc_target_arch}-gcc
Conflicts: %selfconflict %{gcc_target_arch}-gcc
%endif
%if 0%{?gcc_libc_bootstrap:1}
# The -bootstrap packages file-conflict with the non-bootstrap variants. # The -bootstrap packages file-conflict with the non-bootstrap variants.
# Even if we don't actually (want to) distribute the bootstrap variants # Even if we don't actually (want to) distribute the bootstrap variants
# the following avoids repo-checker spamming us endlessly. # the following avoids repo-checker spamming us endlessly.
Provides: %{gcc_target_arch}-gcc
Conflicts: %{gcc_target_arch}-gcc Conflicts: %{gcc_target_arch}-gcc
Conflicts: %{pkgname}-bootstrap
%endif %endif
#!BuildIgnore: gcc-PIE #!BuildIgnore: gcc-PIE
%if %{build_cp} %if 0%{build_cp:1}
# The cross compiler only packages the arch specific c++ headers, so # The cross compiler only packages the arch specific c++ headers, so
# we need to depend on the host libstdc++ devel headers (we wouldn't need # we need to depend on the host libstdc++ devel headers (we wouldn't need
# the libs, though) # the libs, though)
Requires: libstdc++6-devel-gcc13 Requires: libstdc++6-devel-gcc13
%endif %endif
%if 0%{!?gcc_accel:1} && %{suse_version} < 1600 %if 0%{!?gcc_accel:1}
BuildRequires: update-alternatives BuildRequires: update-alternatives
Requires(post): update-alternatives Requires(post): update-alternatives
Requires(preun): update-alternatives Requires(preun): update-alternatives
@@ -586,11 +587,11 @@ amdgcn-amdhsa,\
--enable-gnu-indirect-function \ --enable-gnu-indirect-function \
%endif %endif
%endif %endif
--program-suffix=%{binsuffix} \
%ifarch %{disable_multilib_arch} %ifarch %{disable_multilib_arch}
--disable-multilib \ --disable-multilib \
%endif %endif
%if 0%{!?gcc_target_arch:1} %if 0%{!?gcc_target_arch:1}
--program-suffix=%{binsuffix} \
%ifarch ia64 %ifarch ia64
--with-system-libunwind \ --with-system-libunwind \
%else %else
@@ -598,9 +599,6 @@ amdgcn-amdhsa,\
%endif %endif
%endif %endif
%if 0%{?gcc_target_arch:1} %if 0%{?gcc_target_arch:1}
%if 0%{?gcc_accel:1} || %{suse_version} < 1600
--program-suffix=%{binsuffix} \
%endif
--program-prefix=%{gcc_target_arch}- \ --program-prefix=%{gcc_target_arch}- \
--target=%{gcc_target_arch} \ --target=%{gcc_target_arch} \
--disable-nls \ --disable-nls \
@@ -863,7 +861,7 @@ rm -f $RPM_BUILD_ROOT%{_libdir}/libiberty.a
mkdir -p $RPM_BUILD_ROOT/%{?sysroot:%sysroot} mkdir -p $RPM_BUILD_ROOT/%{?sysroot:%sysroot}
make DESTDIR=$RPM_BUILD_ROOT install-target make DESTDIR=$RPM_BUILD_ROOT install-target
%if %{build_cp} %if %{build_cp}
# So we installed libstdc++ headers into %%prefix where they conflict # So we installed libstdc++ headers into %prefix where they conflict
# with other host compilers. Rip out the non-target specific parts # with other host compilers. Rip out the non-target specific parts
# again. Note not all cross targets support libstdc++, so create the # again. Note not all cross targets support libstdc++, so create the
# directory to make things easier. # directory to make things easier.
@@ -888,7 +886,6 @@ rm -rf $RPM_BUILD_ROOT%{_infodir}
# for accelerators remove all frontends but lto1 and also install-tools # for accelerators remove all frontends but lto1 and also install-tools
%if 0%{?gcc_accel:1} %if 0%{?gcc_accel:1}
rm -f $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch}/cc1 rm -f $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch}/cc1
rm -f $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch}/f951
rm -f $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch}/cc1plus rm -f $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch}/cc1plus
rm -rf $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch}/install-tools rm -rf $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch}/install-tools
rm -rf $RPM_BUILD_ROOT%{targetlibsubdir}/install-tools rm -rf $RPM_BUILD_ROOT%{targetlibsubdir}/install-tools
@@ -896,8 +893,6 @@ rm -rf $RPM_BUILD_ROOT%{targetlibsubdir}/install-tools
# that is the place where we later search for (only) # that is the place where we later search for (only)
( cd $RPM_BUILD_ROOT%{targetlibsubdir} && tar cf - . ) | ( cd $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch} && tar xf - ) ( cd $RPM_BUILD_ROOT%{targetlibsubdir} && tar cf - . ) | ( cd $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch} && tar xf - )
rm -rf $RPM_BUILD_ROOT%{targetlibsubdir} rm -rf $RPM_BUILD_ROOT%{targetlibsubdir}
# also remove installed libstdc++ headers
rm -rf $RPM_BUILD_ROOT%{_prefix}/include/c++
%endif %endif
# for amdgcn install the symlinks to the llvm tools # for amdgcn install the symlinks to the llvm tools
# follow alternatives symlinks to the hardcoded version requirement # follow alternatives symlinks to the hardcoded version requirement
@@ -962,7 +957,7 @@ rm -r env
# we provide update-alternatives for selecting a compiler version for # we provide update-alternatives for selecting a compiler version for
# crosses # crosses
%if 0%{!?gcc_accel:1} && %{suse_version} < 1600 %if 0%{!?gcc_accel:1}
mkdir -p %{buildroot}%{_sysconfdir}/alternatives mkdir -p %{buildroot}%{_sysconfdir}/alternatives
for ex in gcc cpp \ for ex in gcc cpp \
%if %{build_cp} %if %{build_cp}
@@ -1018,19 +1013,15 @@ fi
%endif %endif
%else %else
%{_prefix}/bin/%{gcc_target_arch}-gcc%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcc%{binsuffix}
%if %{suse_version} < 1600
%{_prefix}/bin/%{gcc_target_arch}-cpp%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-cpp%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-gcc-ar%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcc-ar%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-gcc-nm%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcc-nm%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-gcc-ranlib%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcc-ranlib%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-lto-dump%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-lto-dump%{binsuffix}
%endif
%if 0%{!?gcc_libc_bootstrap:1} && "%{cross_arch}" != "bpf" %if 0%{!?gcc_libc_bootstrap:1} && "%{cross_arch}" != "bpf"
%if %{suse_version} < 1600
%{_prefix}/bin/%{gcc_target_arch}-gcov%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcov%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-gcov-dump%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcov-dump%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-gcov-tool%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcov-tool%{binsuffix}
%endif
%{_prefix}/bin/%{gcc_target_arch}-gcov %{_prefix}/bin/%{gcc_target_arch}-gcov
%{_prefix}/bin/%{gcc_target_arch}-gcov-dump %{_prefix}/bin/%{gcc_target_arch}-gcov-dump
%{_prefix}/bin/%{gcc_target_arch}-gcov-tool %{_prefix}/bin/%{gcc_target_arch}-gcov-tool
@@ -1041,7 +1032,6 @@ fi
%{_prefix}/bin/%{gcc_target_arch}-gcc-nm %{_prefix}/bin/%{gcc_target_arch}-gcc-nm
%{_prefix}/bin/%{gcc_target_arch}-gcc-ranlib %{_prefix}/bin/%{gcc_target_arch}-gcc-ranlib
%{_prefix}/bin/%{gcc_target_arch}-lto-dump %{_prefix}/bin/%{gcc_target_arch}-lto-dump
%if %{suse_version} < 1600
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-cpp %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-cpp
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc-ar %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc-ar
@@ -1053,16 +1043,13 @@ fi
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcov-dump %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcov-dump
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcov-tool %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcov-tool
%endif %endif
%endif
%if %{build_cp} %if %{build_cp}
%{_prefix}/bin/%{gcc_target_arch}-c++
%{_prefix}/bin/%{gcc_target_arch}-g++
%if %{suse_version} < 1600
%{_prefix}/bin/%{gcc_target_arch}-c++%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-c++%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-g++%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-g++%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-c++
%{_prefix}/bin/%{gcc_target_arch}-g++
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-c++ %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-c++
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-g++ %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-g++
%endif
%if 0%{!?gcc_libc_bootstrap:1} %if 0%{!?gcc_libc_bootstrap:1}
%if "%{cross_arch}" == "avr" || 0%{?gcc_target_newlib:1} || 0%{?gcc_target_glibc:1} %if "%{cross_arch}" == "avr" || 0%{?gcc_target_newlib:1} || 0%{?gcc_target_glibc:1}
%{_prefix}/include/c++ %{_prefix}/include/c++

View File

@@ -292,24 +292,26 @@ ExclusiveArch: i586 ppc64le ppc64 x86_64 s390x aarch64
%if "%pkgname" == "cross-ppc64-gcc49" %if "%pkgname" == "cross-ppc64-gcc49"
Obsoletes: cross-ppc-gcc49 <= 4.9.0+r209354 Obsoletes: cross-ppc-gcc49 <= 4.9.0+r209354
%endif %endif
%if 0%{!?gcc_accel:1} %if 0%{?gcc_target_newlib:1}%{?gcc_target_glibc:1} || "%{cross_arch}" == "avr"
# Generally only one cross for the same target triplet can be installed # Generally only one cross for the same target triplet can be installed
# at the same time as we are populating a non-version-specific sysroot # at the same time as we are populating a non-version-specific sysroot
Provides: %{gcc_target_arch}-gcc
Conflicts: %selfconflict %{gcc_target_arch}-gcc
%endif
%if 0%{?gcc_libc_bootstrap:1}
# The -bootstrap packages file-conflict with the non-bootstrap variants. # The -bootstrap packages file-conflict with the non-bootstrap variants.
# Even if we don't actually (want to) distribute the bootstrap variants # Even if we don't actually (want to) distribute the bootstrap variants
# the following avoids repo-checker spamming us endlessly. # the following avoids repo-checker spamming us endlessly.
Provides: %{gcc_target_arch}-gcc
Conflicts: %{gcc_target_arch}-gcc Conflicts: %{gcc_target_arch}-gcc
Conflicts: %{pkgname}-bootstrap
%endif %endif
#!BuildIgnore: gcc-PIE #!BuildIgnore: gcc-PIE
%if %{build_cp} %if 0%{build_cp:1}
# The cross compiler only packages the arch specific c++ headers, so # The cross compiler only packages the arch specific c++ headers, so
# we need to depend on the host libstdc++ devel headers (we wouldn't need # we need to depend on the host libstdc++ devel headers (we wouldn't need
# the libs, though) # the libs, though)
Requires: libstdc++6-devel-gcc13 Requires: libstdc++6-devel-gcc13
%endif %endif
%if 0%{!?gcc_accel:1} && %{suse_version} < 1600 %if 0%{!?gcc_accel:1}
BuildRequires: update-alternatives BuildRequires: update-alternatives
Requires(post): update-alternatives Requires(post): update-alternatives
Requires(preun): update-alternatives Requires(preun): update-alternatives
@@ -585,11 +587,11 @@ amdgcn-amdhsa,\
--enable-gnu-indirect-function \ --enable-gnu-indirect-function \
%endif %endif
%endif %endif
--program-suffix=%{binsuffix} \
%ifarch %{disable_multilib_arch} %ifarch %{disable_multilib_arch}
--disable-multilib \ --disable-multilib \
%endif %endif
%if 0%{!?gcc_target_arch:1} %if 0%{!?gcc_target_arch:1}
--program-suffix=%{binsuffix} \
%ifarch ia64 %ifarch ia64
--with-system-libunwind \ --with-system-libunwind \
%else %else
@@ -597,9 +599,6 @@ amdgcn-amdhsa,\
%endif %endif
%endif %endif
%if 0%{?gcc_target_arch:1} %if 0%{?gcc_target_arch:1}
%if 0%{?gcc_accel:1} || %{suse_version} < 1600
--program-suffix=%{binsuffix} \
%endif
--program-prefix=%{gcc_target_arch}- \ --program-prefix=%{gcc_target_arch}- \
--target=%{gcc_target_arch} \ --target=%{gcc_target_arch} \
--disable-nls \ --disable-nls \
@@ -862,7 +861,7 @@ rm -f $RPM_BUILD_ROOT%{_libdir}/libiberty.a
mkdir -p $RPM_BUILD_ROOT/%{?sysroot:%sysroot} mkdir -p $RPM_BUILD_ROOT/%{?sysroot:%sysroot}
make DESTDIR=$RPM_BUILD_ROOT install-target make DESTDIR=$RPM_BUILD_ROOT install-target
%if %{build_cp} %if %{build_cp}
# So we installed libstdc++ headers into %%prefix where they conflict # So we installed libstdc++ headers into %prefix where they conflict
# with other host compilers. Rip out the non-target specific parts # with other host compilers. Rip out the non-target specific parts
# again. Note not all cross targets support libstdc++, so create the # again. Note not all cross targets support libstdc++, so create the
# directory to make things easier. # directory to make things easier.
@@ -887,7 +886,6 @@ rm -rf $RPM_BUILD_ROOT%{_infodir}
# for accelerators remove all frontends but lto1 and also install-tools # for accelerators remove all frontends but lto1 and also install-tools
%if 0%{?gcc_accel:1} %if 0%{?gcc_accel:1}
rm -f $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch}/cc1 rm -f $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch}/cc1
rm -f $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch}/f951
rm -f $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch}/cc1plus rm -f $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch}/cc1plus
rm -rf $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch}/install-tools rm -rf $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch}/install-tools
rm -rf $RPM_BUILD_ROOT%{targetlibsubdir}/install-tools rm -rf $RPM_BUILD_ROOT%{targetlibsubdir}/install-tools
@@ -895,8 +893,6 @@ rm -rf $RPM_BUILD_ROOT%{targetlibsubdir}/install-tools
# that is the place where we later search for (only) # that is the place where we later search for (only)
( cd $RPM_BUILD_ROOT%{targetlibsubdir} && tar cf - . ) | ( cd $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch} && tar xf - ) ( cd $RPM_BUILD_ROOT%{targetlibsubdir} && tar cf - . ) | ( cd $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch} && tar xf - )
rm -rf $RPM_BUILD_ROOT%{targetlibsubdir} rm -rf $RPM_BUILD_ROOT%{targetlibsubdir}
# also remove installed libstdc++ headers
rm -rf $RPM_BUILD_ROOT%{_prefix}/include/c++
%endif %endif
# for amdgcn install the symlinks to the llvm tools # for amdgcn install the symlinks to the llvm tools
# follow alternatives symlinks to the hardcoded version requirement # follow alternatives symlinks to the hardcoded version requirement
@@ -961,7 +957,7 @@ rm -r env
# we provide update-alternatives for selecting a compiler version for # we provide update-alternatives for selecting a compiler version for
# crosses # crosses
%if 0%{!?gcc_accel:1} && %{suse_version} < 1600 %if 0%{!?gcc_accel:1}
mkdir -p %{buildroot}%{_sysconfdir}/alternatives mkdir -p %{buildroot}%{_sysconfdir}/alternatives
for ex in gcc cpp \ for ex in gcc cpp \
%if %{build_cp} %if %{build_cp}
@@ -1017,19 +1013,15 @@ fi
%endif %endif
%else %else
%{_prefix}/bin/%{gcc_target_arch}-gcc%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcc%{binsuffix}
%if %{suse_version} < 1600
%{_prefix}/bin/%{gcc_target_arch}-cpp%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-cpp%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-gcc-ar%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcc-ar%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-gcc-nm%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcc-nm%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-gcc-ranlib%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcc-ranlib%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-lto-dump%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-lto-dump%{binsuffix}
%endif
%if 0%{!?gcc_libc_bootstrap:1} && "%{cross_arch}" != "bpf" %if 0%{!?gcc_libc_bootstrap:1} && "%{cross_arch}" != "bpf"
%if %{suse_version} < 1600
%{_prefix}/bin/%{gcc_target_arch}-gcov%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcov%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-gcov-dump%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcov-dump%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-gcov-tool%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcov-tool%{binsuffix}
%endif
%{_prefix}/bin/%{gcc_target_arch}-gcov %{_prefix}/bin/%{gcc_target_arch}-gcov
%{_prefix}/bin/%{gcc_target_arch}-gcov-dump %{_prefix}/bin/%{gcc_target_arch}-gcov-dump
%{_prefix}/bin/%{gcc_target_arch}-gcov-tool %{_prefix}/bin/%{gcc_target_arch}-gcov-tool
@@ -1040,7 +1032,6 @@ fi
%{_prefix}/bin/%{gcc_target_arch}-gcc-nm %{_prefix}/bin/%{gcc_target_arch}-gcc-nm
%{_prefix}/bin/%{gcc_target_arch}-gcc-ranlib %{_prefix}/bin/%{gcc_target_arch}-gcc-ranlib
%{_prefix}/bin/%{gcc_target_arch}-lto-dump %{_prefix}/bin/%{gcc_target_arch}-lto-dump
%if %{suse_version} < 1600
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-cpp %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-cpp
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc-ar %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc-ar
@@ -1052,16 +1043,13 @@ fi
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcov-dump %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcov-dump
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcov-tool %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcov-tool
%endif %endif
%endif
%if %{build_cp} %if %{build_cp}
%{_prefix}/bin/%{gcc_target_arch}-c++
%{_prefix}/bin/%{gcc_target_arch}-g++
%if %{suse_version} < 1600
%{_prefix}/bin/%{gcc_target_arch}-c++%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-c++%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-g++%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-g++%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-c++
%{_prefix}/bin/%{gcc_target_arch}-g++
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-c++ %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-c++
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-g++ %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-g++
%endif
%if 0%{!?gcc_libc_bootstrap:1} %if 0%{!?gcc_libc_bootstrap:1}
%if "%{cross_arch}" == "avr" || 0%{?gcc_target_newlib:1} || 0%{?gcc_target_glibc:1} %if "%{cross_arch}" == "avr" || 0%{?gcc_target_newlib:1} || 0%{?gcc_target_glibc:1}
%{_prefix}/include/c++ %{_prefix}/include/c++

View File

@@ -293,24 +293,26 @@ ExclusiveArch: i586 ppc64le ppc64 x86_64 s390x aarch64 riscv64
%if "%pkgname" == "cross-ppc64-gcc49" %if "%pkgname" == "cross-ppc64-gcc49"
Obsoletes: cross-ppc-gcc49 <= 4.9.0+r209354 Obsoletes: cross-ppc-gcc49 <= 4.9.0+r209354
%endif %endif
%if 0%{!?gcc_accel:1} %if 0%{?gcc_target_newlib:1}%{?gcc_target_glibc:1} || "%{cross_arch}" == "avr"
# Generally only one cross for the same target triplet can be installed # Generally only one cross for the same target triplet can be installed
# at the same time as we are populating a non-version-specific sysroot # at the same time as we are populating a non-version-specific sysroot
Provides: %{gcc_target_arch}-gcc
Conflicts: %selfconflict %{gcc_target_arch}-gcc
%endif
%if 0%{?gcc_libc_bootstrap:1}
# The -bootstrap packages file-conflict with the non-bootstrap variants. # The -bootstrap packages file-conflict with the non-bootstrap variants.
# Even if we don't actually (want to) distribute the bootstrap variants # Even if we don't actually (want to) distribute the bootstrap variants
# the following avoids repo-checker spamming us endlessly. # the following avoids repo-checker spamming us endlessly.
Provides: %{gcc_target_arch}-gcc
Conflicts: %{gcc_target_arch}-gcc Conflicts: %{gcc_target_arch}-gcc
Conflicts: %{pkgname}-bootstrap
%endif %endif
#!BuildIgnore: gcc-PIE #!BuildIgnore: gcc-PIE
%if %{build_cp} %if 0%{build_cp:1}
# The cross compiler only packages the arch specific c++ headers, so # The cross compiler only packages the arch specific c++ headers, so
# we need to depend on the host libstdc++ devel headers (we wouldn't need # we need to depend on the host libstdc++ devel headers (we wouldn't need
# the libs, though) # the libs, though)
Requires: libstdc++6-devel-gcc13 Requires: libstdc++6-devel-gcc13
%endif %endif
%if 0%{!?gcc_accel:1} && %{suse_version} < 1600 %if 0%{!?gcc_accel:1}
BuildRequires: update-alternatives BuildRequires: update-alternatives
Requires(post): update-alternatives Requires(post): update-alternatives
Requires(preun): update-alternatives Requires(preun): update-alternatives
@@ -586,11 +588,11 @@ amdgcn-amdhsa,\
--enable-gnu-indirect-function \ --enable-gnu-indirect-function \
%endif %endif
%endif %endif
--program-suffix=%{binsuffix} \
%ifarch %{disable_multilib_arch} %ifarch %{disable_multilib_arch}
--disable-multilib \ --disable-multilib \
%endif %endif
%if 0%{!?gcc_target_arch:1} %if 0%{!?gcc_target_arch:1}
--program-suffix=%{binsuffix} \
%ifarch ia64 %ifarch ia64
--with-system-libunwind \ --with-system-libunwind \
%else %else
@@ -598,9 +600,6 @@ amdgcn-amdhsa,\
%endif %endif
%endif %endif
%if 0%{?gcc_target_arch:1} %if 0%{?gcc_target_arch:1}
%if 0%{?gcc_accel:1} || %{suse_version} < 1600
--program-suffix=%{binsuffix} \
%endif
--program-prefix=%{gcc_target_arch}- \ --program-prefix=%{gcc_target_arch}- \
--target=%{gcc_target_arch} \ --target=%{gcc_target_arch} \
--disable-nls \ --disable-nls \
@@ -863,7 +862,7 @@ rm -f $RPM_BUILD_ROOT%{_libdir}/libiberty.a
mkdir -p $RPM_BUILD_ROOT/%{?sysroot:%sysroot} mkdir -p $RPM_BUILD_ROOT/%{?sysroot:%sysroot}
make DESTDIR=$RPM_BUILD_ROOT install-target make DESTDIR=$RPM_BUILD_ROOT install-target
%if %{build_cp} %if %{build_cp}
# So we installed libstdc++ headers into %%prefix where they conflict # So we installed libstdc++ headers into %prefix where they conflict
# with other host compilers. Rip out the non-target specific parts # with other host compilers. Rip out the non-target specific parts
# again. Note not all cross targets support libstdc++, so create the # again. Note not all cross targets support libstdc++, so create the
# directory to make things easier. # directory to make things easier.
@@ -888,7 +887,6 @@ rm -rf $RPM_BUILD_ROOT%{_infodir}
# for accelerators remove all frontends but lto1 and also install-tools # for accelerators remove all frontends but lto1 and also install-tools
%if 0%{?gcc_accel:1} %if 0%{?gcc_accel:1}
rm -f $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch}/cc1 rm -f $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch}/cc1
rm -f $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch}/f951
rm -f $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch}/cc1plus rm -f $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch}/cc1plus
rm -rf $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch}/install-tools rm -rf $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch}/install-tools
rm -rf $RPM_BUILD_ROOT%{targetlibsubdir}/install-tools rm -rf $RPM_BUILD_ROOT%{targetlibsubdir}/install-tools
@@ -896,8 +894,6 @@ rm -rf $RPM_BUILD_ROOT%{targetlibsubdir}/install-tools
# that is the place where we later search for (only) # that is the place where we later search for (only)
( cd $RPM_BUILD_ROOT%{targetlibsubdir} && tar cf - . ) | ( cd $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch} && tar xf - ) ( cd $RPM_BUILD_ROOT%{targetlibsubdir} && tar cf - . ) | ( cd $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch} && tar xf - )
rm -rf $RPM_BUILD_ROOT%{targetlibsubdir} rm -rf $RPM_BUILD_ROOT%{targetlibsubdir}
# also remove installed libstdc++ headers
rm -rf $RPM_BUILD_ROOT%{_prefix}/include/c++
%endif %endif
# for amdgcn install the symlinks to the llvm tools # for amdgcn install the symlinks to the llvm tools
# follow alternatives symlinks to the hardcoded version requirement # follow alternatives symlinks to the hardcoded version requirement
@@ -962,7 +958,7 @@ rm -r env
# we provide update-alternatives for selecting a compiler version for # we provide update-alternatives for selecting a compiler version for
# crosses # crosses
%if 0%{!?gcc_accel:1} && %{suse_version} < 1600 %if 0%{!?gcc_accel:1}
mkdir -p %{buildroot}%{_sysconfdir}/alternatives mkdir -p %{buildroot}%{_sysconfdir}/alternatives
for ex in gcc cpp \ for ex in gcc cpp \
%if %{build_cp} %if %{build_cp}
@@ -1018,19 +1014,15 @@ fi
%endif %endif
%else %else
%{_prefix}/bin/%{gcc_target_arch}-gcc%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcc%{binsuffix}
%if %{suse_version} < 1600
%{_prefix}/bin/%{gcc_target_arch}-cpp%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-cpp%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-gcc-ar%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcc-ar%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-gcc-nm%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcc-nm%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-gcc-ranlib%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcc-ranlib%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-lto-dump%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-lto-dump%{binsuffix}
%endif
%if 0%{!?gcc_libc_bootstrap:1} && "%{cross_arch}" != "bpf" %if 0%{!?gcc_libc_bootstrap:1} && "%{cross_arch}" != "bpf"
%if %{suse_version} < 1600
%{_prefix}/bin/%{gcc_target_arch}-gcov%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcov%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-gcov-dump%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcov-dump%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-gcov-tool%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcov-tool%{binsuffix}
%endif
%{_prefix}/bin/%{gcc_target_arch}-gcov %{_prefix}/bin/%{gcc_target_arch}-gcov
%{_prefix}/bin/%{gcc_target_arch}-gcov-dump %{_prefix}/bin/%{gcc_target_arch}-gcov-dump
%{_prefix}/bin/%{gcc_target_arch}-gcov-tool %{_prefix}/bin/%{gcc_target_arch}-gcov-tool
@@ -1041,7 +1033,6 @@ fi
%{_prefix}/bin/%{gcc_target_arch}-gcc-nm %{_prefix}/bin/%{gcc_target_arch}-gcc-nm
%{_prefix}/bin/%{gcc_target_arch}-gcc-ranlib %{_prefix}/bin/%{gcc_target_arch}-gcc-ranlib
%{_prefix}/bin/%{gcc_target_arch}-lto-dump %{_prefix}/bin/%{gcc_target_arch}-lto-dump
%if %{suse_version} < 1600
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-cpp %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-cpp
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc-ar %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc-ar
@@ -1053,16 +1044,13 @@ fi
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcov-dump %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcov-dump
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcov-tool %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcov-tool
%endif %endif
%endif
%if %{build_cp} %if %{build_cp}
%{_prefix}/bin/%{gcc_target_arch}-c++
%{_prefix}/bin/%{gcc_target_arch}-g++
%if %{suse_version} < 1600
%{_prefix}/bin/%{gcc_target_arch}-c++%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-c++%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-g++%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-g++%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-c++
%{_prefix}/bin/%{gcc_target_arch}-g++
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-c++ %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-c++
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-g++ %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-g++
%endif
%if 0%{!?gcc_libc_bootstrap:1} %if 0%{!?gcc_libc_bootstrap:1}
%if "%{cross_arch}" == "avr" || 0%{?gcc_target_newlib:1} || 0%{?gcc_target_glibc:1} %if "%{cross_arch}" == "avr" || 0%{?gcc_target_newlib:1} || 0%{?gcc_target_glibc:1}
%{_prefix}/include/c++ %{_prefix}/include/c++

View File

@@ -292,24 +292,26 @@ ExclusiveArch: i586 ppc64le ppc64 x86_64 s390x aarch64 riscv64
%if "%pkgname" == "cross-ppc64-gcc49" %if "%pkgname" == "cross-ppc64-gcc49"
Obsoletes: cross-ppc-gcc49 <= 4.9.0+r209354 Obsoletes: cross-ppc-gcc49 <= 4.9.0+r209354
%endif %endif
%if 0%{!?gcc_accel:1} %if 0%{?gcc_target_newlib:1}%{?gcc_target_glibc:1} || "%{cross_arch}" == "avr"
# Generally only one cross for the same target triplet can be installed # Generally only one cross for the same target triplet can be installed
# at the same time as we are populating a non-version-specific sysroot # at the same time as we are populating a non-version-specific sysroot
Provides: %{gcc_target_arch}-gcc
Conflicts: %selfconflict %{gcc_target_arch}-gcc
%endif
%if 0%{?gcc_libc_bootstrap:1}
# The -bootstrap packages file-conflict with the non-bootstrap variants. # The -bootstrap packages file-conflict with the non-bootstrap variants.
# Even if we don't actually (want to) distribute the bootstrap variants # Even if we don't actually (want to) distribute the bootstrap variants
# the following avoids repo-checker spamming us endlessly. # the following avoids repo-checker spamming us endlessly.
Provides: %{gcc_target_arch}-gcc
Conflicts: %{gcc_target_arch}-gcc Conflicts: %{gcc_target_arch}-gcc
Conflicts: %{pkgname}-bootstrap
%endif %endif
#!BuildIgnore: gcc-PIE #!BuildIgnore: gcc-PIE
%if %{build_cp} %if 0%{build_cp:1}
# The cross compiler only packages the arch specific c++ headers, so # The cross compiler only packages the arch specific c++ headers, so
# we need to depend on the host libstdc++ devel headers (we wouldn't need # we need to depend on the host libstdc++ devel headers (we wouldn't need
# the libs, though) # the libs, though)
Requires: libstdc++6-devel-gcc13 Requires: libstdc++6-devel-gcc13
%endif %endif
%if 0%{!?gcc_accel:1} && %{suse_version} < 1600 %if 0%{!?gcc_accel:1}
BuildRequires: update-alternatives BuildRequires: update-alternatives
Requires(post): update-alternatives Requires(post): update-alternatives
Requires(preun): update-alternatives Requires(preun): update-alternatives
@@ -585,11 +587,11 @@ amdgcn-amdhsa,\
--enable-gnu-indirect-function \ --enable-gnu-indirect-function \
%endif %endif
%endif %endif
--program-suffix=%{binsuffix} \
%ifarch %{disable_multilib_arch} %ifarch %{disable_multilib_arch}
--disable-multilib \ --disable-multilib \
%endif %endif
%if 0%{!?gcc_target_arch:1} %if 0%{!?gcc_target_arch:1}
--program-suffix=%{binsuffix} \
%ifarch ia64 %ifarch ia64
--with-system-libunwind \ --with-system-libunwind \
%else %else
@@ -597,9 +599,6 @@ amdgcn-amdhsa,\
%endif %endif
%endif %endif
%if 0%{?gcc_target_arch:1} %if 0%{?gcc_target_arch:1}
%if 0%{?gcc_accel:1} || %{suse_version} < 1600
--program-suffix=%{binsuffix} \
%endif
--program-prefix=%{gcc_target_arch}- \ --program-prefix=%{gcc_target_arch}- \
--target=%{gcc_target_arch} \ --target=%{gcc_target_arch} \
--disable-nls \ --disable-nls \
@@ -862,7 +861,7 @@ rm -f $RPM_BUILD_ROOT%{_libdir}/libiberty.a
mkdir -p $RPM_BUILD_ROOT/%{?sysroot:%sysroot} mkdir -p $RPM_BUILD_ROOT/%{?sysroot:%sysroot}
make DESTDIR=$RPM_BUILD_ROOT install-target make DESTDIR=$RPM_BUILD_ROOT install-target
%if %{build_cp} %if %{build_cp}
# So we installed libstdc++ headers into %%prefix where they conflict # So we installed libstdc++ headers into %prefix where they conflict
# with other host compilers. Rip out the non-target specific parts # with other host compilers. Rip out the non-target specific parts
# again. Note not all cross targets support libstdc++, so create the # again. Note not all cross targets support libstdc++, so create the
# directory to make things easier. # directory to make things easier.
@@ -887,7 +886,6 @@ rm -rf $RPM_BUILD_ROOT%{_infodir}
# for accelerators remove all frontends but lto1 and also install-tools # for accelerators remove all frontends but lto1 and also install-tools
%if 0%{?gcc_accel:1} %if 0%{?gcc_accel:1}
rm -f $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch}/cc1 rm -f $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch}/cc1
rm -f $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch}/f951
rm -f $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch}/cc1plus rm -f $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch}/cc1plus
rm -rf $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch}/install-tools rm -rf $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch}/install-tools
rm -rf $RPM_BUILD_ROOT%{targetlibsubdir}/install-tools rm -rf $RPM_BUILD_ROOT%{targetlibsubdir}/install-tools
@@ -895,8 +893,6 @@ rm -rf $RPM_BUILD_ROOT%{targetlibsubdir}/install-tools
# that is the place where we later search for (only) # that is the place where we later search for (only)
( cd $RPM_BUILD_ROOT%{targetlibsubdir} && tar cf - . ) | ( cd $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch} && tar xf - ) ( cd $RPM_BUILD_ROOT%{targetlibsubdir} && tar cf - . ) | ( cd $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch} && tar xf - )
rm -rf $RPM_BUILD_ROOT%{targetlibsubdir} rm -rf $RPM_BUILD_ROOT%{targetlibsubdir}
# also remove installed libstdc++ headers
rm -rf $RPM_BUILD_ROOT%{_prefix}/include/c++
%endif %endif
# for amdgcn install the symlinks to the llvm tools # for amdgcn install the symlinks to the llvm tools
# follow alternatives symlinks to the hardcoded version requirement # follow alternatives symlinks to the hardcoded version requirement
@@ -961,7 +957,7 @@ rm -r env
# we provide update-alternatives for selecting a compiler version for # we provide update-alternatives for selecting a compiler version for
# crosses # crosses
%if 0%{!?gcc_accel:1} && %{suse_version} < 1600 %if 0%{!?gcc_accel:1}
mkdir -p %{buildroot}%{_sysconfdir}/alternatives mkdir -p %{buildroot}%{_sysconfdir}/alternatives
for ex in gcc cpp \ for ex in gcc cpp \
%if %{build_cp} %if %{build_cp}
@@ -1017,19 +1013,15 @@ fi
%endif %endif
%else %else
%{_prefix}/bin/%{gcc_target_arch}-gcc%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcc%{binsuffix}
%if %{suse_version} < 1600
%{_prefix}/bin/%{gcc_target_arch}-cpp%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-cpp%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-gcc-ar%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcc-ar%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-gcc-nm%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcc-nm%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-gcc-ranlib%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcc-ranlib%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-lto-dump%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-lto-dump%{binsuffix}
%endif
%if 0%{!?gcc_libc_bootstrap:1} && "%{cross_arch}" != "bpf" %if 0%{!?gcc_libc_bootstrap:1} && "%{cross_arch}" != "bpf"
%if %{suse_version} < 1600
%{_prefix}/bin/%{gcc_target_arch}-gcov%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcov%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-gcov-dump%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcov-dump%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-gcov-tool%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcov-tool%{binsuffix}
%endif
%{_prefix}/bin/%{gcc_target_arch}-gcov %{_prefix}/bin/%{gcc_target_arch}-gcov
%{_prefix}/bin/%{gcc_target_arch}-gcov-dump %{_prefix}/bin/%{gcc_target_arch}-gcov-dump
%{_prefix}/bin/%{gcc_target_arch}-gcov-tool %{_prefix}/bin/%{gcc_target_arch}-gcov-tool
@@ -1040,7 +1032,6 @@ fi
%{_prefix}/bin/%{gcc_target_arch}-gcc-nm %{_prefix}/bin/%{gcc_target_arch}-gcc-nm
%{_prefix}/bin/%{gcc_target_arch}-gcc-ranlib %{_prefix}/bin/%{gcc_target_arch}-gcc-ranlib
%{_prefix}/bin/%{gcc_target_arch}-lto-dump %{_prefix}/bin/%{gcc_target_arch}-lto-dump
%if %{suse_version} < 1600
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-cpp %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-cpp
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc-ar %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc-ar
@@ -1052,16 +1043,13 @@ fi
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcov-dump %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcov-dump
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcov-tool %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcov-tool
%endif %endif
%endif
%if %{build_cp} %if %{build_cp}
%{_prefix}/bin/%{gcc_target_arch}-c++
%{_prefix}/bin/%{gcc_target_arch}-g++
%if %{suse_version} < 1600
%{_prefix}/bin/%{gcc_target_arch}-c++%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-c++%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-g++%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-g++%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-c++
%{_prefix}/bin/%{gcc_target_arch}-g++
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-c++ %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-c++
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-g++ %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-g++
%endif
%if 0%{!?gcc_libc_bootstrap:1} %if 0%{!?gcc_libc_bootstrap:1}
%if "%{cross_arch}" == "avr" || 0%{?gcc_target_newlib:1} || 0%{?gcc_target_glibc:1} %if "%{cross_arch}" == "avr" || 0%{?gcc_target_newlib:1} || 0%{?gcc_target_glibc:1}
%{_prefix}/include/c++ %{_prefix}/include/c++

View File

@@ -19,7 +19,6 @@
%define pkgname cross-s390x-gcc13-bootstrap %define pkgname cross-s390x-gcc13-bootstrap
%define cross_arch s390x %define cross_arch s390x
%define gcc_target_arch s390x-suse-linux %define gcc_target_arch s390x-suse-linux
%define gcc_target_glibc 1
%define gcc_libc_bootstrap 1 %define gcc_libc_bootstrap 1
# nospeccleaner # nospeccleaner
@@ -293,24 +292,26 @@ ExclusiveArch: i586 ppc64le ppc64 x86_64 aarch64 riscv64
%if "%pkgname" == "cross-ppc64-gcc49" %if "%pkgname" == "cross-ppc64-gcc49"
Obsoletes: cross-ppc-gcc49 <= 4.9.0+r209354 Obsoletes: cross-ppc-gcc49 <= 4.9.0+r209354
%endif %endif
%if 0%{!?gcc_accel:1} %if 0%{?gcc_target_newlib:1}%{?gcc_target_glibc:1} || "%{cross_arch}" == "avr"
# Generally only one cross for the same target triplet can be installed # Generally only one cross for the same target triplet can be installed
# at the same time as we are populating a non-version-specific sysroot # at the same time as we are populating a non-version-specific sysroot
Provides: %{gcc_target_arch}-gcc
Conflicts: %selfconflict %{gcc_target_arch}-gcc
%endif
%if 0%{?gcc_libc_bootstrap:1}
# The -bootstrap packages file-conflict with the non-bootstrap variants. # The -bootstrap packages file-conflict with the non-bootstrap variants.
# Even if we don't actually (want to) distribute the bootstrap variants # Even if we don't actually (want to) distribute the bootstrap variants
# the following avoids repo-checker spamming us endlessly. # the following avoids repo-checker spamming us endlessly.
Provides: %{gcc_target_arch}-gcc
Conflicts: %{gcc_target_arch}-gcc Conflicts: %{gcc_target_arch}-gcc
Conflicts: %{pkgname}-bootstrap
%endif %endif
#!BuildIgnore: gcc-PIE #!BuildIgnore: gcc-PIE
%if %{build_cp} %if 0%{build_cp:1}
# The cross compiler only packages the arch specific c++ headers, so # The cross compiler only packages the arch specific c++ headers, so
# we need to depend on the host libstdc++ devel headers (we wouldn't need # we need to depend on the host libstdc++ devel headers (we wouldn't need
# the libs, though) # the libs, though)
Requires: libstdc++6-devel-gcc13 Requires: libstdc++6-devel-gcc13
%endif %endif
%if 0%{!?gcc_accel:1} && %{suse_version} < 1600 %if 0%{!?gcc_accel:1}
BuildRequires: update-alternatives BuildRequires: update-alternatives
Requires(post): update-alternatives Requires(post): update-alternatives
Requires(preun): update-alternatives Requires(preun): update-alternatives
@@ -586,11 +587,11 @@ amdgcn-amdhsa,\
--enable-gnu-indirect-function \ --enable-gnu-indirect-function \
%endif %endif
%endif %endif
--program-suffix=%{binsuffix} \
%ifarch %{disable_multilib_arch} %ifarch %{disable_multilib_arch}
--disable-multilib \ --disable-multilib \
%endif %endif
%if 0%{!?gcc_target_arch:1} %if 0%{!?gcc_target_arch:1}
--program-suffix=%{binsuffix} \
%ifarch ia64 %ifarch ia64
--with-system-libunwind \ --with-system-libunwind \
%else %else
@@ -598,9 +599,6 @@ amdgcn-amdhsa,\
%endif %endif
%endif %endif
%if 0%{?gcc_target_arch:1} %if 0%{?gcc_target_arch:1}
%if 0%{?gcc_accel:1} || %{suse_version} < 1600
--program-suffix=%{binsuffix} \
%endif
--program-prefix=%{gcc_target_arch}- \ --program-prefix=%{gcc_target_arch}- \
--target=%{gcc_target_arch} \ --target=%{gcc_target_arch} \
--disable-nls \ --disable-nls \
@@ -863,7 +861,7 @@ rm -f $RPM_BUILD_ROOT%{_libdir}/libiberty.a
mkdir -p $RPM_BUILD_ROOT/%{?sysroot:%sysroot} mkdir -p $RPM_BUILD_ROOT/%{?sysroot:%sysroot}
make DESTDIR=$RPM_BUILD_ROOT install-target make DESTDIR=$RPM_BUILD_ROOT install-target
%if %{build_cp} %if %{build_cp}
# So we installed libstdc++ headers into %%prefix where they conflict # So we installed libstdc++ headers into %prefix where they conflict
# with other host compilers. Rip out the non-target specific parts # with other host compilers. Rip out the non-target specific parts
# again. Note not all cross targets support libstdc++, so create the # again. Note not all cross targets support libstdc++, so create the
# directory to make things easier. # directory to make things easier.
@@ -888,7 +886,6 @@ rm -rf $RPM_BUILD_ROOT%{_infodir}
# for accelerators remove all frontends but lto1 and also install-tools # for accelerators remove all frontends but lto1 and also install-tools
%if 0%{?gcc_accel:1} %if 0%{?gcc_accel:1}
rm -f $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch}/cc1 rm -f $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch}/cc1
rm -f $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch}/f951
rm -f $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch}/cc1plus rm -f $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch}/cc1plus
rm -rf $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch}/install-tools rm -rf $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch}/install-tools
rm -rf $RPM_BUILD_ROOT%{targetlibsubdir}/install-tools rm -rf $RPM_BUILD_ROOT%{targetlibsubdir}/install-tools
@@ -896,8 +893,6 @@ rm -rf $RPM_BUILD_ROOT%{targetlibsubdir}/install-tools
# that is the place where we later search for (only) # that is the place where we later search for (only)
( cd $RPM_BUILD_ROOT%{targetlibsubdir} && tar cf - . ) | ( cd $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch} && tar xf - ) ( cd $RPM_BUILD_ROOT%{targetlibsubdir} && tar cf - . ) | ( cd $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch} && tar xf - )
rm -rf $RPM_BUILD_ROOT%{targetlibsubdir} rm -rf $RPM_BUILD_ROOT%{targetlibsubdir}
# also remove installed libstdc++ headers
rm -rf $RPM_BUILD_ROOT%{_prefix}/include/c++
%endif %endif
# for amdgcn install the symlinks to the llvm tools # for amdgcn install the symlinks to the llvm tools
# follow alternatives symlinks to the hardcoded version requirement # follow alternatives symlinks to the hardcoded version requirement
@@ -962,7 +957,7 @@ rm -r env
# we provide update-alternatives for selecting a compiler version for # we provide update-alternatives for selecting a compiler version for
# crosses # crosses
%if 0%{!?gcc_accel:1} && %{suse_version} < 1600 %if 0%{!?gcc_accel:1}
mkdir -p %{buildroot}%{_sysconfdir}/alternatives mkdir -p %{buildroot}%{_sysconfdir}/alternatives
for ex in gcc cpp \ for ex in gcc cpp \
%if %{build_cp} %if %{build_cp}
@@ -1018,19 +1013,15 @@ fi
%endif %endif
%else %else
%{_prefix}/bin/%{gcc_target_arch}-gcc%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcc%{binsuffix}
%if %{suse_version} < 1600
%{_prefix}/bin/%{gcc_target_arch}-cpp%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-cpp%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-gcc-ar%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcc-ar%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-gcc-nm%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcc-nm%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-gcc-ranlib%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcc-ranlib%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-lto-dump%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-lto-dump%{binsuffix}
%endif
%if 0%{!?gcc_libc_bootstrap:1} && "%{cross_arch}" != "bpf" %if 0%{!?gcc_libc_bootstrap:1} && "%{cross_arch}" != "bpf"
%if %{suse_version} < 1600
%{_prefix}/bin/%{gcc_target_arch}-gcov%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcov%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-gcov-dump%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcov-dump%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-gcov-tool%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcov-tool%{binsuffix}
%endif
%{_prefix}/bin/%{gcc_target_arch}-gcov %{_prefix}/bin/%{gcc_target_arch}-gcov
%{_prefix}/bin/%{gcc_target_arch}-gcov-dump %{_prefix}/bin/%{gcc_target_arch}-gcov-dump
%{_prefix}/bin/%{gcc_target_arch}-gcov-tool %{_prefix}/bin/%{gcc_target_arch}-gcov-tool
@@ -1041,7 +1032,6 @@ fi
%{_prefix}/bin/%{gcc_target_arch}-gcc-nm %{_prefix}/bin/%{gcc_target_arch}-gcc-nm
%{_prefix}/bin/%{gcc_target_arch}-gcc-ranlib %{_prefix}/bin/%{gcc_target_arch}-gcc-ranlib
%{_prefix}/bin/%{gcc_target_arch}-lto-dump %{_prefix}/bin/%{gcc_target_arch}-lto-dump
%if %{suse_version} < 1600
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-cpp %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-cpp
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc-ar %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc-ar
@@ -1053,16 +1043,13 @@ fi
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcov-dump %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcov-dump
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcov-tool %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcov-tool
%endif %endif
%endif
%if %{build_cp} %if %{build_cp}
%{_prefix}/bin/%{gcc_target_arch}-c++
%{_prefix}/bin/%{gcc_target_arch}-g++
%if %{suse_version} < 1600
%{_prefix}/bin/%{gcc_target_arch}-c++%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-c++%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-g++%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-g++%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-c++
%{_prefix}/bin/%{gcc_target_arch}-g++
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-c++ %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-c++
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-g++ %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-g++
%endif
%if 0%{!?gcc_libc_bootstrap:1} %if 0%{!?gcc_libc_bootstrap:1}
%if "%{cross_arch}" == "avr" || 0%{?gcc_target_newlib:1} || 0%{?gcc_target_glibc:1} %if "%{cross_arch}" == "avr" || 0%{?gcc_target_newlib:1} || 0%{?gcc_target_glibc:1}
%{_prefix}/include/c++ %{_prefix}/include/c++

View File

@@ -292,24 +292,26 @@ ExclusiveArch: i586 ppc64le ppc64 x86_64 aarch64 riscv64
%if "%pkgname" == "cross-ppc64-gcc49" %if "%pkgname" == "cross-ppc64-gcc49"
Obsoletes: cross-ppc-gcc49 <= 4.9.0+r209354 Obsoletes: cross-ppc-gcc49 <= 4.9.0+r209354
%endif %endif
%if 0%{!?gcc_accel:1} %if 0%{?gcc_target_newlib:1}%{?gcc_target_glibc:1} || "%{cross_arch}" == "avr"
# Generally only one cross for the same target triplet can be installed # Generally only one cross for the same target triplet can be installed
# at the same time as we are populating a non-version-specific sysroot # at the same time as we are populating a non-version-specific sysroot
Provides: %{gcc_target_arch}-gcc
Conflicts: %selfconflict %{gcc_target_arch}-gcc
%endif
%if 0%{?gcc_libc_bootstrap:1}
# The -bootstrap packages file-conflict with the non-bootstrap variants. # The -bootstrap packages file-conflict with the non-bootstrap variants.
# Even if we don't actually (want to) distribute the bootstrap variants # Even if we don't actually (want to) distribute the bootstrap variants
# the following avoids repo-checker spamming us endlessly. # the following avoids repo-checker spamming us endlessly.
Provides: %{gcc_target_arch}-gcc
Conflicts: %{gcc_target_arch}-gcc Conflicts: %{gcc_target_arch}-gcc
Conflicts: %{pkgname}-bootstrap
%endif %endif
#!BuildIgnore: gcc-PIE #!BuildIgnore: gcc-PIE
%if %{build_cp} %if 0%{build_cp:1}
# The cross compiler only packages the arch specific c++ headers, so # The cross compiler only packages the arch specific c++ headers, so
# we need to depend on the host libstdc++ devel headers (we wouldn't need # we need to depend on the host libstdc++ devel headers (we wouldn't need
# the libs, though) # the libs, though)
Requires: libstdc++6-devel-gcc13 Requires: libstdc++6-devel-gcc13
%endif %endif
%if 0%{!?gcc_accel:1} && %{suse_version} < 1600 %if 0%{!?gcc_accel:1}
BuildRequires: update-alternatives BuildRequires: update-alternatives
Requires(post): update-alternatives Requires(post): update-alternatives
Requires(preun): update-alternatives Requires(preun): update-alternatives
@@ -585,11 +587,11 @@ amdgcn-amdhsa,\
--enable-gnu-indirect-function \ --enable-gnu-indirect-function \
%endif %endif
%endif %endif
--program-suffix=%{binsuffix} \
%ifarch %{disable_multilib_arch} %ifarch %{disable_multilib_arch}
--disable-multilib \ --disable-multilib \
%endif %endif
%if 0%{!?gcc_target_arch:1} %if 0%{!?gcc_target_arch:1}
--program-suffix=%{binsuffix} \
%ifarch ia64 %ifarch ia64
--with-system-libunwind \ --with-system-libunwind \
%else %else
@@ -597,9 +599,6 @@ amdgcn-amdhsa,\
%endif %endif
%endif %endif
%if 0%{?gcc_target_arch:1} %if 0%{?gcc_target_arch:1}
%if 0%{?gcc_accel:1} || %{suse_version} < 1600
--program-suffix=%{binsuffix} \
%endif
--program-prefix=%{gcc_target_arch}- \ --program-prefix=%{gcc_target_arch}- \
--target=%{gcc_target_arch} \ --target=%{gcc_target_arch} \
--disable-nls \ --disable-nls \
@@ -862,7 +861,7 @@ rm -f $RPM_BUILD_ROOT%{_libdir}/libiberty.a
mkdir -p $RPM_BUILD_ROOT/%{?sysroot:%sysroot} mkdir -p $RPM_BUILD_ROOT/%{?sysroot:%sysroot}
make DESTDIR=$RPM_BUILD_ROOT install-target make DESTDIR=$RPM_BUILD_ROOT install-target
%if %{build_cp} %if %{build_cp}
# So we installed libstdc++ headers into %%prefix where they conflict # So we installed libstdc++ headers into %prefix where they conflict
# with other host compilers. Rip out the non-target specific parts # with other host compilers. Rip out the non-target specific parts
# again. Note not all cross targets support libstdc++, so create the # again. Note not all cross targets support libstdc++, so create the
# directory to make things easier. # directory to make things easier.
@@ -887,7 +886,6 @@ rm -rf $RPM_BUILD_ROOT%{_infodir}
# for accelerators remove all frontends but lto1 and also install-tools # for accelerators remove all frontends but lto1 and also install-tools
%if 0%{?gcc_accel:1} %if 0%{?gcc_accel:1}
rm -f $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch}/cc1 rm -f $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch}/cc1
rm -f $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch}/f951
rm -f $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch}/cc1plus rm -f $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch}/cc1plus
rm -rf $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch}/install-tools rm -rf $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch}/install-tools
rm -rf $RPM_BUILD_ROOT%{targetlibsubdir}/install-tools rm -rf $RPM_BUILD_ROOT%{targetlibsubdir}/install-tools
@@ -895,8 +893,6 @@ rm -rf $RPM_BUILD_ROOT%{targetlibsubdir}/install-tools
# that is the place where we later search for (only) # that is the place where we later search for (only)
( cd $RPM_BUILD_ROOT%{targetlibsubdir} && tar cf - . ) | ( cd $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch} && tar xf - ) ( cd $RPM_BUILD_ROOT%{targetlibsubdir} && tar cf - . ) | ( cd $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch} && tar xf - )
rm -rf $RPM_BUILD_ROOT%{targetlibsubdir} rm -rf $RPM_BUILD_ROOT%{targetlibsubdir}
# also remove installed libstdc++ headers
rm -rf $RPM_BUILD_ROOT%{_prefix}/include/c++
%endif %endif
# for amdgcn install the symlinks to the llvm tools # for amdgcn install the symlinks to the llvm tools
# follow alternatives symlinks to the hardcoded version requirement # follow alternatives symlinks to the hardcoded version requirement
@@ -961,7 +957,7 @@ rm -r env
# we provide update-alternatives for selecting a compiler version for # we provide update-alternatives for selecting a compiler version for
# crosses # crosses
%if 0%{!?gcc_accel:1} && %{suse_version} < 1600 %if 0%{!?gcc_accel:1}
mkdir -p %{buildroot}%{_sysconfdir}/alternatives mkdir -p %{buildroot}%{_sysconfdir}/alternatives
for ex in gcc cpp \ for ex in gcc cpp \
%if %{build_cp} %if %{build_cp}
@@ -1017,19 +1013,15 @@ fi
%endif %endif
%else %else
%{_prefix}/bin/%{gcc_target_arch}-gcc%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcc%{binsuffix}
%if %{suse_version} < 1600
%{_prefix}/bin/%{gcc_target_arch}-cpp%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-cpp%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-gcc-ar%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcc-ar%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-gcc-nm%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcc-nm%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-gcc-ranlib%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcc-ranlib%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-lto-dump%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-lto-dump%{binsuffix}
%endif
%if 0%{!?gcc_libc_bootstrap:1} && "%{cross_arch}" != "bpf" %if 0%{!?gcc_libc_bootstrap:1} && "%{cross_arch}" != "bpf"
%if %{suse_version} < 1600
%{_prefix}/bin/%{gcc_target_arch}-gcov%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcov%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-gcov-dump%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcov-dump%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-gcov-tool%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcov-tool%{binsuffix}
%endif
%{_prefix}/bin/%{gcc_target_arch}-gcov %{_prefix}/bin/%{gcc_target_arch}-gcov
%{_prefix}/bin/%{gcc_target_arch}-gcov-dump %{_prefix}/bin/%{gcc_target_arch}-gcov-dump
%{_prefix}/bin/%{gcc_target_arch}-gcov-tool %{_prefix}/bin/%{gcc_target_arch}-gcov-tool
@@ -1040,7 +1032,6 @@ fi
%{_prefix}/bin/%{gcc_target_arch}-gcc-nm %{_prefix}/bin/%{gcc_target_arch}-gcc-nm
%{_prefix}/bin/%{gcc_target_arch}-gcc-ranlib %{_prefix}/bin/%{gcc_target_arch}-gcc-ranlib
%{_prefix}/bin/%{gcc_target_arch}-lto-dump %{_prefix}/bin/%{gcc_target_arch}-lto-dump
%if %{suse_version} < 1600
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-cpp %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-cpp
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc-ar %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc-ar
@@ -1052,16 +1043,13 @@ fi
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcov-dump %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcov-dump
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcov-tool %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcov-tool
%endif %endif
%endif
%if %{build_cp} %if %{build_cp}
%{_prefix}/bin/%{gcc_target_arch}-c++
%{_prefix}/bin/%{gcc_target_arch}-g++
%if %{suse_version} < 1600
%{_prefix}/bin/%{gcc_target_arch}-c++%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-c++%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-g++%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-g++%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-c++
%{_prefix}/bin/%{gcc_target_arch}-g++
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-c++ %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-c++
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-g++ %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-g++
%endif
%if 0%{!?gcc_libc_bootstrap:1} %if 0%{!?gcc_libc_bootstrap:1}
%if "%{cross_arch}" == "avr" || 0%{?gcc_target_newlib:1} || 0%{?gcc_target_glibc:1} %if "%{cross_arch}" == "avr" || 0%{?gcc_target_newlib:1} || 0%{?gcc_target_glibc:1}
%{_prefix}/include/c++ %{_prefix}/include/c++

1086
cross-sparc-gcc13.spec Normal file

File diff suppressed because it is too large Load Diff

1086
cross-sparc64-gcc13.spec Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -19,8 +19,7 @@
%define pkgname cross-x86_64-gcc13 %define pkgname cross-x86_64-gcc13
%define cross_arch x86_64 %define cross_arch x86_64
%define gcc_target_arch x86_64-suse-linux %define gcc_target_arch x86_64-suse-linux
%define gcc_target_glibc 1 %define gcc_icecream 1
%define gcc_libc_bootstrap 1
# nospeccleaner # nospeccleaner
%define build_cp 0%{!?gcc_accel:1} %define build_cp 0%{!?gcc_accel:1}
@@ -293,24 +292,26 @@ ExclusiveArch: i586 ppc64le ppc64 s390x aarch64 riscv64
%if "%pkgname" == "cross-ppc64-gcc49" %if "%pkgname" == "cross-ppc64-gcc49"
Obsoletes: cross-ppc-gcc49 <= 4.9.0+r209354 Obsoletes: cross-ppc-gcc49 <= 4.9.0+r209354
%endif %endif
%if 0%{!?gcc_accel:1} %if 0%{?gcc_target_newlib:1}%{?gcc_target_glibc:1} || "%{cross_arch}" == "avr"
# Generally only one cross for the same target triplet can be installed # Generally only one cross for the same target triplet can be installed
# at the same time as we are populating a non-version-specific sysroot # at the same time as we are populating a non-version-specific sysroot
Provides: %{gcc_target_arch}-gcc
Conflicts: %selfconflict %{gcc_target_arch}-gcc
%endif
%if 0%{?gcc_libc_bootstrap:1}
# The -bootstrap packages file-conflict with the non-bootstrap variants. # The -bootstrap packages file-conflict with the non-bootstrap variants.
# Even if we don't actually (want to) distribute the bootstrap variants # Even if we don't actually (want to) distribute the bootstrap variants
# the following avoids repo-checker spamming us endlessly. # the following avoids repo-checker spamming us endlessly.
Provides: %{gcc_target_arch}-gcc
Conflicts: %{gcc_target_arch}-gcc Conflicts: %{gcc_target_arch}-gcc
Conflicts: %{pkgname}-bootstrap
%endif %endif
#!BuildIgnore: gcc-PIE #!BuildIgnore: gcc-PIE
%if %{build_cp} %if 0%{build_cp:1}
# The cross compiler only packages the arch specific c++ headers, so # The cross compiler only packages the arch specific c++ headers, so
# we need to depend on the host libstdc++ devel headers (we wouldn't need # we need to depend on the host libstdc++ devel headers (we wouldn't need
# the libs, though) # the libs, though)
Requires: libstdc++6-devel-gcc13 Requires: libstdc++6-devel-gcc13
%endif %endif
%if 0%{!?gcc_accel:1} && %{suse_version} < 1600 %if 0%{!?gcc_accel:1}
BuildRequires: update-alternatives BuildRequires: update-alternatives
Requires(post): update-alternatives Requires(post): update-alternatives
Requires(preun): update-alternatives Requires(preun): update-alternatives
@@ -586,11 +587,11 @@ amdgcn-amdhsa,\
--enable-gnu-indirect-function \ --enable-gnu-indirect-function \
%endif %endif
%endif %endif
--program-suffix=%{binsuffix} \
%ifarch %{disable_multilib_arch} %ifarch %{disable_multilib_arch}
--disable-multilib \ --disable-multilib \
%endif %endif
%if 0%{!?gcc_target_arch:1} %if 0%{!?gcc_target_arch:1}
--program-suffix=%{binsuffix} \
%ifarch ia64 %ifarch ia64
--with-system-libunwind \ --with-system-libunwind \
%else %else
@@ -598,9 +599,6 @@ amdgcn-amdhsa,\
%endif %endif
%endif %endif
%if 0%{?gcc_target_arch:1} %if 0%{?gcc_target_arch:1}
%if 0%{?gcc_accel:1} || %{suse_version} < 1600
--program-suffix=%{binsuffix} \
%endif
--program-prefix=%{gcc_target_arch}- \ --program-prefix=%{gcc_target_arch}- \
--target=%{gcc_target_arch} \ --target=%{gcc_target_arch} \
--disable-nls \ --disable-nls \
@@ -863,7 +861,7 @@ rm -f $RPM_BUILD_ROOT%{_libdir}/libiberty.a
mkdir -p $RPM_BUILD_ROOT/%{?sysroot:%sysroot} mkdir -p $RPM_BUILD_ROOT/%{?sysroot:%sysroot}
make DESTDIR=$RPM_BUILD_ROOT install-target make DESTDIR=$RPM_BUILD_ROOT install-target
%if %{build_cp} %if %{build_cp}
# So we installed libstdc++ headers into %%prefix where they conflict # So we installed libstdc++ headers into %prefix where they conflict
# with other host compilers. Rip out the non-target specific parts # with other host compilers. Rip out the non-target specific parts
# again. Note not all cross targets support libstdc++, so create the # again. Note not all cross targets support libstdc++, so create the
# directory to make things easier. # directory to make things easier.
@@ -888,7 +886,6 @@ rm -rf $RPM_BUILD_ROOT%{_infodir}
# for accelerators remove all frontends but lto1 and also install-tools # for accelerators remove all frontends but lto1 and also install-tools
%if 0%{?gcc_accel:1} %if 0%{?gcc_accel:1}
rm -f $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch}/cc1 rm -f $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch}/cc1
rm -f $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch}/f951
rm -f $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch}/cc1plus rm -f $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch}/cc1plus
rm -rf $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch}/install-tools rm -rf $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch}/install-tools
rm -rf $RPM_BUILD_ROOT%{targetlibsubdir}/install-tools rm -rf $RPM_BUILD_ROOT%{targetlibsubdir}/install-tools
@@ -896,8 +893,6 @@ rm -rf $RPM_BUILD_ROOT%{targetlibsubdir}/install-tools
# that is the place where we later search for (only) # that is the place where we later search for (only)
( cd $RPM_BUILD_ROOT%{targetlibsubdir} && tar cf - . ) | ( cd $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch} && tar xf - ) ( cd $RPM_BUILD_ROOT%{targetlibsubdir} && tar cf - . ) | ( cd $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch} && tar xf - )
rm -rf $RPM_BUILD_ROOT%{targetlibsubdir} rm -rf $RPM_BUILD_ROOT%{targetlibsubdir}
# also remove installed libstdc++ headers
rm -rf $RPM_BUILD_ROOT%{_prefix}/include/c++
%endif %endif
# for amdgcn install the symlinks to the llvm tools # for amdgcn install the symlinks to the llvm tools
# follow alternatives symlinks to the hardcoded version requirement # follow alternatives symlinks to the hardcoded version requirement
@@ -962,7 +957,7 @@ rm -r env
# we provide update-alternatives for selecting a compiler version for # we provide update-alternatives for selecting a compiler version for
# crosses # crosses
%if 0%{!?gcc_accel:1} && %{suse_version} < 1600 %if 0%{!?gcc_accel:1}
mkdir -p %{buildroot}%{_sysconfdir}/alternatives mkdir -p %{buildroot}%{_sysconfdir}/alternatives
for ex in gcc cpp \ for ex in gcc cpp \
%if %{build_cp} %if %{build_cp}
@@ -1018,19 +1013,15 @@ fi
%endif %endif
%else %else
%{_prefix}/bin/%{gcc_target_arch}-gcc%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcc%{binsuffix}
%if %{suse_version} < 1600
%{_prefix}/bin/%{gcc_target_arch}-cpp%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-cpp%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-gcc-ar%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcc-ar%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-gcc-nm%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcc-nm%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-gcc-ranlib%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcc-ranlib%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-lto-dump%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-lto-dump%{binsuffix}
%endif
%if 0%{!?gcc_libc_bootstrap:1} && "%{cross_arch}" != "bpf" %if 0%{!?gcc_libc_bootstrap:1} && "%{cross_arch}" != "bpf"
%if %{suse_version} < 1600
%{_prefix}/bin/%{gcc_target_arch}-gcov%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcov%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-gcov-dump%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcov-dump%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-gcov-tool%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcov-tool%{binsuffix}
%endif
%{_prefix}/bin/%{gcc_target_arch}-gcov %{_prefix}/bin/%{gcc_target_arch}-gcov
%{_prefix}/bin/%{gcc_target_arch}-gcov-dump %{_prefix}/bin/%{gcc_target_arch}-gcov-dump
%{_prefix}/bin/%{gcc_target_arch}-gcov-tool %{_prefix}/bin/%{gcc_target_arch}-gcov-tool
@@ -1041,7 +1032,6 @@ fi
%{_prefix}/bin/%{gcc_target_arch}-gcc-nm %{_prefix}/bin/%{gcc_target_arch}-gcc-nm
%{_prefix}/bin/%{gcc_target_arch}-gcc-ranlib %{_prefix}/bin/%{gcc_target_arch}-gcc-ranlib
%{_prefix}/bin/%{gcc_target_arch}-lto-dump %{_prefix}/bin/%{gcc_target_arch}-lto-dump
%if %{suse_version} < 1600
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-cpp %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-cpp
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc-ar %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc-ar
@@ -1053,16 +1043,13 @@ fi
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcov-dump %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcov-dump
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcov-tool %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcov-tool
%endif %endif
%endif
%if %{build_cp} %if %{build_cp}
%{_prefix}/bin/%{gcc_target_arch}-c++
%{_prefix}/bin/%{gcc_target_arch}-g++
%if %{suse_version} < 1600
%{_prefix}/bin/%{gcc_target_arch}-c++%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-c++%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-g++%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-g++%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-c++
%{_prefix}/bin/%{gcc_target_arch}-g++
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-c++ %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-c++
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-g++ %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-g++
%endif
%if 0%{!?gcc_libc_bootstrap:1} %if 0%{!?gcc_libc_bootstrap:1}
%if "%{cross_arch}" == "avr" || 0%{?gcc_target_newlib:1} || 0%{?gcc_target_glibc:1} %if "%{cross_arch}" == "avr" || 0%{?gcc_target_newlib:1} || 0%{?gcc_target_glibc:1}
%{_prefix}/include/c++ %{_prefix}/include/c++

View File

@@ -195,24 +195,26 @@ ExclusiveArch: i586 ppc64le ppc64 x86_64 s390x aarch64 riscv64
%if "%pkgname" == "cross-ppc64-gcc49" %if "%pkgname" == "cross-ppc64-gcc49"
Obsoletes: cross-ppc-gcc49 <= 4.9.0+r209354 Obsoletes: cross-ppc-gcc49 <= 4.9.0+r209354
%endif %endif
%if 0%{!?gcc_accel:1} %if 0%{?gcc_target_newlib:1}%{?gcc_target_glibc:1} || "%{cross_arch}" == "avr"
# Generally only one cross for the same target triplet can be installed # Generally only one cross for the same target triplet can be installed
# at the same time as we are populating a non-version-specific sysroot # at the same time as we are populating a non-version-specific sysroot
Provides: %{gcc_target_arch}-gcc
Conflicts: %selfconflict %{gcc_target_arch}-gcc
%endif
%if 0%{?gcc_libc_bootstrap:1}
# The -bootstrap packages file-conflict with the non-bootstrap variants. # The -bootstrap packages file-conflict with the non-bootstrap variants.
# Even if we don't actually (want to) distribute the bootstrap variants # Even if we don't actually (want to) distribute the bootstrap variants
# the following avoids repo-checker spamming us endlessly. # the following avoids repo-checker spamming us endlessly.
Provides: %{gcc_target_arch}-gcc
Conflicts: %{gcc_target_arch}-gcc Conflicts: %{gcc_target_arch}-gcc
Conflicts: %{pkgname}-bootstrap
%endif %endif
#!BuildIgnore: gcc-PIE #!BuildIgnore: gcc-PIE
%if %{build_cp} %if 0%{build_cp:1}
# The cross compiler only packages the arch specific c++ headers, so # The cross compiler only packages the arch specific c++ headers, so
# we need to depend on the host libstdc++ devel headers (we wouldn't need # we need to depend on the host libstdc++ devel headers (we wouldn't need
# the libs, though) # the libs, though)
Requires: libstdc++6-devel-gcc@base_ver@ Requires: libstdc++6-devel-gcc@base_ver@
%endif %endif
%if 0%{!?gcc_accel:1} && %{suse_version} < 1600 %if 0%{!?gcc_accel:1}
BuildRequires: update-alternatives BuildRequires: update-alternatives
Requires(post): update-alternatives Requires(post): update-alternatives
Requires(preun): update-alternatives Requires(preun): update-alternatives
@@ -305,7 +307,7 @@ rm -f $RPM_BUILD_ROOT%{_libdir}/libiberty.a
mkdir -p $RPM_BUILD_ROOT/%{?sysroot:%sysroot} mkdir -p $RPM_BUILD_ROOT/%{?sysroot:%sysroot}
make DESTDIR=$RPM_BUILD_ROOT install-target make DESTDIR=$RPM_BUILD_ROOT install-target
%if %{build_cp} %if %{build_cp}
# So we installed libstdc++ headers into %%prefix where they conflict # So we installed libstdc++ headers into %prefix where they conflict
# with other host compilers. Rip out the non-target specific parts # with other host compilers. Rip out the non-target specific parts
# again. Note not all cross targets support libstdc++, so create the # again. Note not all cross targets support libstdc++, so create the
# directory to make things easier. # directory to make things easier.
@@ -330,7 +332,6 @@ rm -rf $RPM_BUILD_ROOT%{_infodir}
# for accelerators remove all frontends but lto1 and also install-tools # for accelerators remove all frontends but lto1 and also install-tools
%if 0%{?gcc_accel:1} %if 0%{?gcc_accel:1}
rm -f $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch}/cc1 rm -f $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch}/cc1
rm -f $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch}/f951
rm -f $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch}/cc1plus rm -f $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch}/cc1plus
rm -rf $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch}/install-tools rm -rf $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch}/install-tools
rm -rf $RPM_BUILD_ROOT%{targetlibsubdir}/install-tools rm -rf $RPM_BUILD_ROOT%{targetlibsubdir}/install-tools
@@ -338,8 +339,6 @@ rm -rf $RPM_BUILD_ROOT%{targetlibsubdir}/install-tools
# that is the place where we later search for (only) # that is the place where we later search for (only)
( cd $RPM_BUILD_ROOT%{targetlibsubdir} && tar cf - . ) | ( cd $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch} && tar xf - ) ( cd $RPM_BUILD_ROOT%{targetlibsubdir} && tar cf - . ) | ( cd $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch} && tar xf - )
rm -rf $RPM_BUILD_ROOT%{targetlibsubdir} rm -rf $RPM_BUILD_ROOT%{targetlibsubdir}
# also remove installed libstdc++ headers
rm -rf $RPM_BUILD_ROOT%{_prefix}/include/c++
%endif %endif
# for amdgcn install the symlinks to the llvm tools # for amdgcn install the symlinks to the llvm tools
# follow alternatives symlinks to the hardcoded version requirement # follow alternatives symlinks to the hardcoded version requirement
@@ -404,7 +403,7 @@ rm -r env
# we provide update-alternatives for selecting a compiler version for # we provide update-alternatives for selecting a compiler version for
# crosses # crosses
%if 0%{!?gcc_accel:1} && %{suse_version} < 1600 %if 0%{!?gcc_accel:1}
mkdir -p %{buildroot}%{_sysconfdir}/alternatives mkdir -p %{buildroot}%{_sysconfdir}/alternatives
for ex in gcc cpp \ for ex in gcc cpp \
%if %{build_cp} %if %{build_cp}
@@ -460,19 +459,15 @@ fi
%endif %endif
%else %else
%{_prefix}/bin/%{gcc_target_arch}-gcc%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcc%{binsuffix}
%if %{suse_version} < 1600
%{_prefix}/bin/%{gcc_target_arch}-cpp%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-cpp%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-gcc-ar%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcc-ar%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-gcc-nm%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcc-nm%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-gcc-ranlib%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcc-ranlib%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-lto-dump%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-lto-dump%{binsuffix}
%endif
%if 0%{!?gcc_libc_bootstrap:1} && "%{cross_arch}" != "bpf" %if 0%{!?gcc_libc_bootstrap:1} && "%{cross_arch}" != "bpf"
%if %{suse_version} < 1600
%{_prefix}/bin/%{gcc_target_arch}-gcov%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcov%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-gcov-dump%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcov-dump%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-gcov-tool%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcov-tool%{binsuffix}
%endif
%{_prefix}/bin/%{gcc_target_arch}-gcov %{_prefix}/bin/%{gcc_target_arch}-gcov
%{_prefix}/bin/%{gcc_target_arch}-gcov-dump %{_prefix}/bin/%{gcc_target_arch}-gcov-dump
%{_prefix}/bin/%{gcc_target_arch}-gcov-tool %{_prefix}/bin/%{gcc_target_arch}-gcov-tool
@@ -483,7 +478,6 @@ fi
%{_prefix}/bin/%{gcc_target_arch}-gcc-nm %{_prefix}/bin/%{gcc_target_arch}-gcc-nm
%{_prefix}/bin/%{gcc_target_arch}-gcc-ranlib %{_prefix}/bin/%{gcc_target_arch}-gcc-ranlib
%{_prefix}/bin/%{gcc_target_arch}-lto-dump %{_prefix}/bin/%{gcc_target_arch}-lto-dump
%if %{suse_version} < 1600
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-cpp %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-cpp
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc-ar %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc-ar
@@ -495,16 +489,13 @@ fi
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcov-dump %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcov-dump
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcov-tool %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcov-tool
%endif %endif
%endif
%if %{build_cp} %if %{build_cp}
%{_prefix}/bin/%{gcc_target_arch}-c++
%{_prefix}/bin/%{gcc_target_arch}-g++
%if %{suse_version} < 1600
%{_prefix}/bin/%{gcc_target_arch}-c++%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-c++%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-g++%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-g++%{binsuffix}
%{_prefix}/bin/%{gcc_target_arch}-c++
%{_prefix}/bin/%{gcc_target_arch}-g++
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-c++ %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-c++
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-g++ %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-g++
%endif
%if 0%{!?gcc_libc_bootstrap:1} %if 0%{!?gcc_libc_bootstrap:1}
%if "%{cross_arch}" == "avr" || 0%{?gcc_target_newlib:1} || 0%{?gcc_target_glibc:1} %if "%{cross_arch}" == "avr" || 0%{?gcc_target_newlib:1} || 0%{?gcc_target_glibc:1}
%{_prefix}/include/c++ %{_prefix}/include/c++
@@ -538,4 +529,4 @@ fi
%exclude %{_prefix}/%{gcc_target_arch}/bin %exclude %{_prefix}/%{gcc_target_arch}/bin
%endif %endif
%changelog -n %{pkgname} %changelog -n cross-%{pkgname}-gcc@base_ver@

View File

@@ -1591,11 +1591,11 @@ amdgcn-amdhsa,\
--enable-gnu-indirect-function \ --enable-gnu-indirect-function \
%endif %endif
%endif %endif
--program-suffix=%{binsuffix} \
%ifarch %{disable_multilib_arch} %ifarch %{disable_multilib_arch}
--disable-multilib \ --disable-multilib \
%endif %endif
%if 0%{!?gcc_target_arch:1} %if 0%{!?gcc_target_arch:1}
--program-suffix=%{binsuffix} \
%ifarch ia64 %ifarch ia64
--with-system-libunwind \ --with-system-libunwind \
%else %else
@@ -1603,9 +1603,6 @@ amdgcn-amdhsa,\
%endif %endif
%endif %endif
%if 0%{?gcc_target_arch:1} %if 0%{?gcc_target_arch:1}
%if 0%{?gcc_accel:1} || %{suse_version} < 1600
--program-suffix=%{binsuffix} \
%endif
--program-prefix=%{gcc_target_arch}- \ --program-prefix=%{gcc_target_arch}- \
--target=%{gcc_target_arch} \ --target=%{gcc_target_arch} \
--disable-nls \ --disable-nls \

View File

@@ -777,11 +777,11 @@ amdgcn-amdhsa,\
--enable-gnu-indirect-function \ --enable-gnu-indirect-function \
%endif %endif
%endif %endif
--program-suffix=%{binsuffix} \
%ifarch %{disable_multilib_arch} %ifarch %{disable_multilib_arch}
--disable-multilib \ --disable-multilib \
%endif %endif
%if 0%{!?gcc_target_arch:1} %if 0%{!?gcc_target_arch:1}
--program-suffix=%{binsuffix} \
%ifarch ia64 %ifarch ia64
--with-system-libunwind \ --with-system-libunwind \
%else %else
@@ -789,9 +789,6 @@ amdgcn-amdhsa,\
%endif %endif
%endif %endif
%if 0%{?gcc_target_arch:1} %if 0%{?gcc_target_arch:1}
%if 0%{?gcc_accel:1} || %{suse_version} < 1600
--program-suffix=%{binsuffix} \
%endif
--program-prefix=%{gcc_target_arch}- \ --program-prefix=%{gcc_target_arch}- \
--target=%{gcc_target_arch} \ --target=%{gcc_target_arch} \
--disable-nls \ --disable-nls \

View File

@@ -1,15 +1,3 @@
-------------------------------------------------------------------
Thu Jul 17 07:20:37 UTC 2025 - Richard Biener <rguenther@suse.com>
- Remove all %gcc_icecream mode cross-compilers and the corresponding
icecream backend subpackages. Instead use glibc-bootstrap only
configs for cross-x86_64-gcc (ipxe,ovmf,qemu), cross-ppc64-gcc (qemu)
and cross-arm-gcc (ovmf).
- Prune the use of update-alternatives from openSUSE Factory and
SLFO.
- Adjust crosses to conflict consistently where they did not
already and make them use unsuffixed binaries.
------------------------------------------------------------------- -------------------------------------------------------------------
Wed Jul 2 10:31:10 UTC 2025 - Richard Biener <rguenther@suse.com> Wed Jul 2 10:31:10 UTC 2025 - Richard Biener <rguenther@suse.com>

View File

@@ -2601,11 +2601,11 @@ amdgcn-amdhsa,\
--enable-gnu-indirect-function \ --enable-gnu-indirect-function \
%endif %endif
%endif %endif
--program-suffix=%{binsuffix} \
%ifarch %{disable_multilib_arch} %ifarch %{disable_multilib_arch}
--disable-multilib \ --disable-multilib \
%endif %endif
%if 0%{!?gcc_target_arch:1} %if 0%{!?gcc_target_arch:1}
--program-suffix=%{binsuffix} \
%ifarch ia64 %ifarch ia64
--with-system-libunwind \ --with-system-libunwind \
%else %else
@@ -2613,9 +2613,6 @@ amdgcn-amdhsa,\
%endif %endif
%endif %endif
%if 0%{?gcc_target_arch:1} %if 0%{?gcc_target_arch:1}
%if 0%{?gcc_accel:1} || %{suse_version} < 1600
--program-suffix=%{binsuffix} \
%endif
--program-prefix=%{gcc_target_arch}- \ --program-prefix=%{gcc_target_arch}- \
--target=%{gcc_target_arch} \ --target=%{gcc_target_arch} \
--disable-nls \ --disable-nls \