File cross-m68k-gcc13.spec of Package gcc13 (Revision 67a6cd7747bf7ca80d8cf25106d8cdec)
Currently displaying revision 67a6cd7747bf7ca80d8cf25106d8cdec , Show latest
1081
1
#
2
# spec file
3
#
4
# Copyright (c) 2024 SUSE LLC
5
#
6
# All modifications and additions to the file contributed by third parties
7
# remain the property of their copyright owners, unless otherwise agreed
8
# upon. The license for this file, and modifications and additions to the
9
# file, is the same license as for the pristine package itself (unless the
10
# license for the pristine package is not an Open Source License, in which
11
# case the license is the MIT License). An "Open Source License" is a
12
# license that conforms to the Open Source Definition (Version 1.9)
13
# published by the Open Source Initiative.
14
15
# Please submit bugfixes or comments via https://bugs.opensuse.org/
16
#
17
18
19
%define pkgname cross-m68k-gcc13
20
%define cross_arch m68k
21
%define gcc_target_arch m68k-suse-linux
22
%define gcc_icecream 1
23
# nospeccleaner
24
25
%define build_cp 0%{!?gcc_accel:1}
26
%if 0%{?gcc_libc_bootstrap:1} || "%{cross_arch}" == "bpf"
27
%define build_cp 0
28
%endif
29
%define build_ada 0
30
%define build_libjava 0
31
%define build_java 0
32
33
%define build_fortran 0%{?gcc_accel:1}
34
%define build_objc 0
35
%define build_objcp 0
36
%define build_go 0
37
%define build_nvptx 0
38
%define build_gcn 0
39
%define build_d 0
40
%define build_rust 0
41
%define build_m2 0
42
43
%define enable_plugins 0
44
%define build_jit 0
45
%define use_lto_bootstrap 0
46
47
%define binutils_target %{cross_arch}
48
%if "%{cross_arch}" == "armv7l" || "%{cross_arch}" == "armv7hl"
49
%define binutils_target arm
50
%endif
51
%if "%{cross_arch}" == "armv6l" || "%{cross_arch}" == "armv6hl"
52
%define binutils_target arm
53
%endif
54
%if "%{cross_arch}" == "armv5tel"
55
%define binutils_target arm
56
%endif
57
%if "%{cross_arch}" == "arm-none"
58
%define binutils_target arm
59
%endif
60
%if "%{cross_arch}" == "riscv64-elf"
61
%define binutils_target riscv64
62
%endif
63
%if "%{cross_arch}" == "sparcv9"
64
%define binutils_target sparc
65
%endif
66
%define canonical_target %(echo %{binutils_target} | sed -e "s/i.86/i586/;s/ppc/powerpc/;s/sparc64.*/sparc64/;s/sparcv.*/sparc/;")
67
%if "%{binutils_target}" == "avr" || "%{binutils_target}" == "spu" || "%{binutils_target}" == "pru"
68
%define binutils_os %{canonical_target}
69
%else
70
%if "%{binutils_target}" == "epiphany" || "%{binutils_target}" == "nds32le" || "%{binutils_target}" == "rl78" || "%{binutils_target}" == "rx"
71
%define binutils_os %{canonical_target}-elf
72
%else
73
%if "%{binutils_target}" == "arm"
74
%define binutils_os %{canonical_target}-suse-linux-gnueabi
75
%else
76
%if "%{binutils_target}" == "bpf"
77
%define binutils_os %{canonical_target}-none
78
%else
79
%if 0%{?gcc_accel:1}
80
%define binutils_os %{gcc_target_arch}
81
%else
82
%define binutils_os %{canonical_target}-suse-linux
83
%endif
84
%endif
85
%endif
86
%endif
87
%endif
88
89
%if 0%{?gcc_icecream:1}
90
%define sysroot %{_prefix}/%{gcc_target_arch}
91
%else
92
# offloading builds newlib in-tree and can install in
93
# the GCC private path without extra sysroot
94
%if 0%{!?gcc_accel:1}
95
# use same sysroot as in binutils.spec
96
%define sysroot %{_prefix}/%{binutils_os}/sys-root
97
%endif
98
%endif
99
100
%if %{suse_version} >= 1220
101
%define selfconflict() %1
102
%else
103
%define selfconflict() otherproviders(%1)
104
%endif
105
106
Name: %{pkgname}
107
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
108
109
URL: https://gcc.gnu.org/
110
Version: 13.2.1+git8285
111
Release: 0
112
%define gcc_dir_version %(echo %version | sed 's/+.*//' | cut -d '.' -f 1)
113
%define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' | sed 's/+/-/')
114
%define binsuffix -13
115
%if %{suse_version} < 1310
116
BuildRoot: %{_tmppath}/%{name}-%{version}-build
117
%endif
118
Group: Development/Languages/C and C++
119
Source: gcc-%{version}.tar.xz
120
Source1: change_spec
121
Source2: gcc13-rpmlintrc
122
Source3: gcc13-testresults-rpmlintrc
123
Source4: README.First-for.SuSE.packagers
124
Source5: newlib-4.3.0.20230120.tar.xz
125
Patch2: gcc-add-defaultsspec.diff
126
Patch5: tls-no-direct.diff
127
Patch6: gcc43-no-unwind-tables.diff
128
Patch7: gcc48-libstdc++-api-reference.patch
129
Patch11: gcc7-remove-Wexpansion-to-defined-from-Wextra.patch
130
Patch15: gcc7-avoid-fixinc-error.diff
131
Patch16: gcc9-reproducible-builds.patch
132
Patch17: gcc9-reproducible-builds-buildid-for-checksum.patch
133
Patch18: gcc10-amdgcn-llvm-as.patch
134
Patch19: gcc11-gdwarf-4-default.patch
135
Patch20: gcc11-amdgcn-disable-hot-cold-partitioning.patch
136
Patch21: gdcflags.patch
137
Patch23: gcc13-bsc1216664.patch
138
Patch24: gcc13-sanitizer-remove-crypt-interception.patch
139
Patch25: gcc13-pr111731.patch
140
# A set of patches from the RH srpm
141
Patch51: gcc41-ppc32-retaddr.patch
142
# Some patches taken from Debian
143
Patch60: gcc44-textdomain.patch
144
Patch61: gcc44-rename-info-files.patch
145
# Feature backports
146
Patch100: gcc13-pr88345-min-func-alignment.diff
147
148
# Define the canonical target and host architecture
149
# %%gcc_target_arch is supposed to be the full target triple
150
# %%cross_arch is supposed to be the rpm target variant arch
151
# %%TARGET_ARCH will be the canonicalized target CPU part
152
# %%HOST_ARCH will be the canonicalized host CPU part
153
%if 0%{?gcc_target_arch:1}
154
%define TARGET_ARCH %(echo %{cross_arch} | sed -e "s/i.86/i586/;s/ppc/powerpc/;s/sparc64.*/sparc64/;s/sparcv.*/sparc/;")
155
%else
156
%define TARGET_ARCH %(echo %{_target_cpu} | sed -e "s/i.86/i586/;s/ppc/powerpc/;s/sparc64.*/sparc64/;s/sparcv.*/sparc/;")
157
%endif
158
%if 0%{?disable_32bit:1}
159
%define biarch 0
160
%else
161
%define biarch %(case " %{biarch_targets} " in (*" %{TARGET_ARCH} "*) echo 1;; (*) echo 0;; esac)
162
%endif
163
164
%define HOST_ARCH %(echo %{_target_cpu} | sed -e "s/i.86/i586/;s/ppc/powerpc/;s/sparc64.*/sparc64/;s/sparcv.*/sparc/;")
165
%ifarch ppc
166
%define GCCDIST powerpc64-suse-linux
167
%else
168
%ifarch %sparc
169
%define GCCDIST sparc64-suse-linux
170
%else
171
%ifarch %arm
172
%define GCCDIST %{HOST_ARCH}-suse-linux-gnueabi
173
%else
174
%define GCCDIST %{HOST_ARCH}-suse-linux
175
%endif
176
%endif
177
%endif
178
179
%define libsubdir %{_libdir}/gcc/%{GCCDIST}/%{gcc_dir_version}
180
%define gxxinclude %{_prefix}/include/c++/%{gcc_dir_version}
181
182
%if "%{cross_arch}" != "nvptx"
183
%if "%{cross_arch}" != "amdgcn"
184
BuildRequires: cross-%{binutils_target}-binutils
185
Requires: cross-%{binutils_target}-binutils
186
%endif
187
%endif
188
%define hostsuffix %{nil}
189
%if 0%{suse_version} < 1220
190
%define hostsuffix -4.8
191
BuildRequires: gcc48-c++
192
%else
193
BuildRequires: gcc-c++
194
%endif
195
%if %{suse_version} > 1500
196
BuildRequires: libzstd-devel
197
%endif
198
BuildRequires: bison
199
BuildRequires: flex
200
BuildRequires: gettext-devel
201
BuildRequires: glibc-devel-32bit
202
%if %{with limitbuild}
203
BuildRequires: memory-constraints
204
%endif
205
BuildRequires: mpc-devel
206
BuildRequires: mpfr-devel
207
BuildRequires: perl
208
%if %{suse_version} > 1220
209
BuildRequires: makeinfo
210
%else
211
BuildRequires: texinfo
212
%endif
213
BuildRequires: zlib-devel
214
%if %{suse_version} >= 1230
215
BuildRequires: isl-devel
216
%endif
217
%ifarch ia64
218
BuildRequires: libunwind-devel
219
%endif
220
%if 0%{!?gcc_icecream:1}
221
%if 0%{!?gcc_libc_bootstrap:1}
222
%if 0%{?gcc_target_newlib:1}
223
%if !0%{?is_opensuse}
224
ExclusiveArch: do-not-build
225
%endif
226
BuildRequires: cross-%cross_arch-newlib-devel
227
Requires: cross-%cross_arch-newlib-devel
228
%endif
229
%if "%{cross_arch}" == "avr"
230
%if !0%{?is_opensuse}
231
ExclusiveArch: do-not-build
232
%endif
233
BuildRequires: avr-libc
234
%endif
235
%if 0%{?gcc_target_glibc:1}
236
%if %{suse_version} < 1600
237
ExclusiveArch: do-not-build
238
%endif
239
BuildRequires: cross-%cross_arch-glibc-devel
240
Requires: cross-%cross_arch-glibc-devel
241
%endif
242
%endif
243
%if "%{cross_arch}" == "nvptx"
244
BuildRequires: nvptx-tools
245
Requires: cross-nvptx-newlib-devel >= %{version}-%{release}
246
Requires: nvptx-tools
247
ExclusiveArch: x86_64
248
%define nvptx_newlib 1
249
%endif
250
%if "%{cross_arch}" == "amdgcn"
251
# amdgcn uses the llvm assembler and linker
252
%if %{suse_version} < 1550
253
BuildRequires: llvm13
254
%define product_libs_llvm_ver 13
255
%else
256
BuildRequires: llvm%{product_libs_llvm_ver}
257
%endif
258
BuildRequires: lld
259
%if %{suse_version} < 1550
260
Requires: llvm13
261
%else
262
Requires: llvm%{product_libs_llvm_ver}
263
%endif
264
Requires: cross-amdgcn-newlib-devel >= %{version}-%{release}
265
Requires: lld
266
# SLE12 does not fulfil build requirements for GCN, SLE15 SP1 does
267
# technically also SLE12 SP5 but do not bother there
268
%if %{suse_version} >= 1550 || 0%{?sle_version:%sle_version} >= 150100
269
ExclusiveArch: x86_64
270
%else
271
ExclusiveArch: do-not-build
272
%endif
273
%define amdgcn_newlib 1
274
%endif
275
%endif
276
%if "%{cross_arch}" == "pru"
277
ExclusiveArch: %arm
278
%endif
279
%if 0%{?gcc_target_glibc:1}
280
%ifarch %{cross_arch}
281
ExcludeArch: %{cross_arch}
282
%endif
283
%endif
284
%if 0%{?gcc_icecream:1}%{?gcc_libc_bootstrap:1}
285
ExclusiveArch: i586 ppc64le ppc64 x86_64 s390x aarch64 riscv64
286
%endif
287
%define _binary_payload w.ufdio
288
# Obsolete cross-ppc-gcc49 from cross-ppc64-gcc49 which has
289
# file conflicts with it and is no longer packaged
290
%if "%pkgname" == "cross-ppc64-gcc49"
291
Obsoletes: cross-ppc-gcc49 <= 4.9.0+r209354
292
%endif
293
%if 0%{?gcc_target_newlib:1}%{?gcc_target_glibc:1}
294
# Generally only one cross for the same target triplet can be installed
295
# at the same time as we are populating a non-version-specific sysroot
296
Provides: %{gcc_target_arch}-gcc
297
Conflicts: %selfconflict %{gcc_target_arch}-gcc
298
%endif
299
%if 0%{?gcc_libc_bootstrap:1}
300
# The -bootstrap packages file-conflict with the non-bootstrap variants.
301
# Even if we don't actually (want to) distribute the bootstrap variants
302
# the following avoids repo-checker spamming us endlessly.
303
Conflicts: cross-%{cross_arch}-gcc13
304
%endif
305
#!BuildIgnore: gcc-PIE
306
%if 0%{build_cp:1}
307
# The cross compiler only packages the arch specific c++ headers, so
308
# we need to depend on the host libstdc++ devel headers (we wouldn't need
309
# the libs, though)
310
Requires: libstdc++6-devel-gcc13
311
%endif
312
AutoReqProv: off
313
%if 0%{!?gcc_accel:1}
314
BuildRequires: update-alternatives
315
Requires(post): update-alternatives
316
Requires(preun):update-alternatives
317
%endif
318
Summary: The GNU Compiler Collection targeting %{cross_arch}
319
License: GPL-3.0-or-later
320
321
%description
322
The GNU Compiler Collection as a cross-compiler targeting %{cross_arch}.
323
%if 0%{?gcc_icecream:1}
324
Note this is only useful for building freestanding things like the
325
kernel since it fails to include target libraries and headers.
326
%endif
327
%if 0%{?gcc_libc_bootstrap:1}
328
This is a package that is necessary for bootstrapping another package
329
only, it is not intended for any other use.
330
%endif
331
332
%if 0%{suse_version} >= 1500
333
# Synchronize output by lines, useful for configure output
334
%define make_output_sync -Oline
335
%endif
336
337
%prep
338
%if 0%{?nvptx_newlib:1}%{?amdgcn_newlib:1}
339
%setup -q -n gcc-%{version} -a 5
340
ln -s newlib-4.3.0.20230120/newlib .
341
%else
342
%setup -q -n gcc-%{version}
343
%endif
344
345
#test patching start
346
347
%patch -P 2
348
%patch -P 5
349
%patch -P 6
350
%patch -P 7
351
%patch -P 11
352
%patch -P 15
353
%patch -P 16
354
%patch -P 17 -p1
355
# These patches are needed only for llvm11
356
%if "%{TARGET_ARCH}" == "amdgcn" && %{suse_version} < 1550
357
%patch -P 18 -p1
358
%patch -P 20 -p1
359
%endif
360
# In SLE15 and earlier default to dwarf4, not dwarf5
361
%if %{suse_version} < 1550
362
%patch -P 19 -p1
363
%endif
364
%patch -P 21 -p1
365
%patch -P 23 -p1
366
%patch -P 24 -p1
367
%patch -P 25 -p1
368
%patch -P 51
369
%patch -P 60 -p1
370
%patch -P 61 -p1
371
%patch -P 100 -p1
372
373
#test patching end
374
375
%build
376
%if %{with limitbuild}
377
%limit_build -m 900
378
%endif
379
%define _lto_cflags %{nil}
380
# Avoid rebuilding of generated files
381
contrib/gcc_update --touch
382
383
# SLE11 does not allow empty rpms
384
%if %{suse_version} < 1310
385
echo "This is a dummy package to provide a dependency." > README
386
%endif
387
388
rm -rf obj-%{GCCDIST}
389
mkdir obj-%{GCCDIST}
390
cd obj-%{GCCDIST}
391
# Filter out unwanted flags from $RPM_OPT_FLAGS
392
optflags=
393
optflags_d=
394
for flag in $RPM_OPT_FLAGS; do
395
add_flag=
396
case $flag in
397
-U_FORTIFY_SOURCE|-D_FORTIFY_SOURCE=*) ;;
398
-fno-rtti|-fno-exceptions|-Wmissing-format-attribute|-fstack-protector*) ;;
399
-ffortify=*|-Wall|-m32|-m64) ;;
400
%ifarch %ix86
401
# -mcpu is superseded by -mtune but -mtune is not supported by
402
# our bootstrap compiler. -mcpu gives a warning that stops
403
# the build process, so remove it for now. Also remove all other
404
# -march and -mtune flags. They are superseded by proper
405
# default compiler settings now.
406
-mcpu=i?86|-march=i?86|-mtune=i?86) ;;
407
%endif
408
%ifarch s390 s390x
409
-fsigned-char) ;;
410
-O1) add_flag=-O2 ;;
411
%endif
412
%if 0%{?gcc_target_arch:1}
413
# Kill all -march/tune/cpu because that screws building the target libs
414
-march=*|-mtune=*|-mcpu=*) ;;
415
%endif
416
*) add_flag=$flag ;;
417
esac
418
if test -n "$add_flag"; then
419
optflags+=" $add_flag"
420
case $add_flag in
421
# Filter out -Werror=return-type for D (only valid for C and C++)
422
-Werror=return-type) ;;
423
*) optflags_d+=" $add_flag" ;;
424
esac
425
fi
426
done
427
428
languages=c
429
%if %{build_cp}
430
languages=$languages,c++
431
%endif
432
%if %{build_objc}
433
languages=$languages,objc
434
%endif
435
%if %{build_fortran}
436
languages=$languages,fortran
437
%endif
438
%if %{build_objcp}
439
languages=$languages,obj-c++
440
%endif
441
%if %{build_ada}
442
languages=$languages,ada
443
%endif
444
%if %{build_go}
445
languages=$languages,go
446
%endif
447
%if %{build_d}
448
languages=$languages,d
449
%endif
450
%if %{build_jit}
451
languages=$languages,jit
452
%endif
453
%if %{build_rust}
454
languages=$languages,rust
455
%endif
456
%if %{build_m2}
457
languages=$languages,m2
458
%endif
459
460
# In general we want to ship release checking enabled compilers
461
# which is the default for released compilers
462
#ENABLE_CHECKING="--enable-checking=yes"
463
ENABLE_CHECKING="--enable-checking=release"
464
#ENABLE_CHECKING=""
465
466
# Work around tail/head -1 changes
467
export _POSIX2_VERSION=199209
468
469
%if "%{TARGET_ARCH}" == "amdgcn"
470
mkdir -p target-tools/bin
471
ln -s /usr/bin/llvm-ar-%{product_libs_llvm_ver}* target-tools/bin/amdgcn-amdhsa-ar
472
ln -s /usr/bin/llvm-mc-%{product_libs_llvm_ver}* target-tools/bin/amdgcn-amdhsa-as
473
ln -s /usr/bin/lld target-tools/bin/amdgcn-amdhsa-ld
474
ln -s /usr/bin/llvm-nm-%{product_libs_llvm_ver}* target-tools/bin/amdgcn-amdhsa-nm
475
ln -s /usr/bin/llvm-ranlib-%{product_libs_llvm_ver}* target-tools/bin/amdgcn-amdhsa-ranlib
476
export PATH="`pwd`/target-tools/bin:$PATH"
477
%endif
478
479
%if "%{hostsuffix}" != ""
480
mkdir -p host-tools/bin
481
# Using the host gnatmake like
482
# CC="gcc%%{hostsuffix}" GNATBIND="gnatbind%%{hostsuffix}"
483
# GNATMAKE="gnatmake%%{hostsuffix}"
484
# doesn't work due to PR33857, so an un-suffixed gnatmake has to be
485
# available
486
%if %{build_ada}
487
cp -a /usr/bin/gnatmake%{hostsuffix} host-tools/bin/gnatmake
488
cp -a /usr/bin/gnatlink%{hostsuffix} host-tools/bin/gnatlink
489
cp -a /usr/bin/gnatbind%{hostsuffix} host-tools/bin/gnatbind
490
%endif
491
cp -a /usr/bin/gcc%{hostsuffix} host-tools/bin/gcc
492
cp -a /usr/bin/g++%{hostsuffix} host-tools/bin/g++
493
ln -sf /usr/%{_lib} host-tools/%{_lib}
494
export PATH="`pwd`/host-tools/bin:$PATH"
495
%endif
496
497
%if %{build_d} && %{suse_version} < 1550
498
# We are using gcc11-d to bootstrap d
499
export GDC=gdc-11
500
%endif
501
502
# libsanitizer needs <crypt.h> and since the glibc/libxcrypt split
503
# we don't have that yet in a pure cross environment
504
%if 0%{?gcc_target_arch:1}
505
CONFARGS="$CONFARGS --disable-libsanitizer"
506
%endif
507
508
../configure \
509
CFLAGS="$optflags" \
510
CXXFLAGS="$optflags" \
511
XCFLAGS="$optflags" \
512
TCFLAGS="$optflags" \
513
GDCFLAGS="$optflags_d" \
514
--prefix=%{_prefix} \
515
--infodir=%{_infodir} \
516
--mandir=%{_mandir} \
517
--libdir=%{_libdir} \
518
--libexecdir=%{_libdir} \
519
--enable-languages=$languages \
520
%if %{build_nvptx} || %{build_gcn}
521
--enable-offload-targets=\
522
%if %{build_nvptx}
523
nvptx-none,\
524
%endif
525
%if %{build_gcn}
526
amdgcn-amdhsa,\
527
%endif
528
--enable-offload-defaulted \
529
%endif
530
%if %{build_nvptx}
531
--without-cuda-driver \
532
%endif
533
%if %{build_jit}
534
--enable-host-shared \
535
%endif
536
$ENABLE_CHECKING \
537
--disable-werror \
538
--with-gxx-include-dir=%{_prefix}/include/c++/%{gcc_dir_version} \
539
--with-libstdcxx-zoneinfo=%{_datadir}/zoneinfo \
540
--enable-ssp \
541
--disable-libssp \
542
%if 0%{!?build_libvtv:1}
543
--disable-libvtv \
544
%endif
545
%if 0%{suse_version} >= 1500
546
--enable-cet=auto \
547
%else
548
--disable-cet \
549
%endif
550
--disable-libcc1 \
551
%if %{enable_plugins}
552
--enable-plugin \
553
%else
554
--disable-plugin \
555
%endif
556
--with-bugurl="https://bugs.opensuse.org/" \
557
--with-pkgversion="SUSE Linux" \
558
%if 0%{?sysroot:1}
559
--with-slibdir=%{sysroot}/%{_lib} \
560
%else
561
--with-slibdir=/%{_lib} \
562
%endif
563
--with-system-zlib \
564
--enable-libstdcxx-allocator=new \
565
--disable-libstdcxx-pch \
566
%if 0%{suse_version} <= 1320
567
--with-default-libstdcxx-abi=gcc4-compatible \
568
%endif
569
%if %{build_d}
570
--enable-libphobos \
571
%endif
572
--enable-version-specific-runtime-libs \
573
--with-gcc-major-version-only \
574
%if 0%{!?gcc_target_arch:1}
575
--enable-linker-build-id \
576
%else
577
%if 0%{?gcc_target_glibc:1}
578
--enable-linker-build-id \
579
%endif
580
%endif
581
--enable-linux-futex \
582
%if %{suse_version} >= 1315
583
%ifarch %ix86 x86_64 ppc ppc64 ppc64le %arm aarch64 s390 s390x %sparc
584
--enable-gnu-indirect-function \
585
%endif
586
%endif
587
--program-suffix=%{binsuffix} \
588
%ifarch %{disable_multilib_arch}
589
--disable-multilib \
590
%endif
591
%if 0%{!?gcc_target_arch:1}
592
%ifarch ia64
593
--with-system-libunwind \
594
%else
595
--without-system-libunwind \
596
%endif
597
%endif
598
%if 0%{?gcc_target_arch:1}
599
--program-prefix=%{gcc_target_arch}- \
600
--target=%{gcc_target_arch} \
601
--disable-nls \
602
%if 0%{?sysroot:1}
603
--with-sysroot=%sysroot \
604
%endif
605
%if 0%{?build_sysroot:1}
606
--with-build-sysroot=%{build_sysroot} \
607
%else
608
%if 0%{?sysroot:1}
609
--with-build-sysroot=%{sysroot} \
610
%endif
611
%endif
612
%if 0%{?binutils_os:1}
613
--with-build-time-tools=/usr/%{binutils_os}/bin \
614
%endif
615
%if 0%{?gcc_target_newlib}
616
--with-newlib \
617
%if 0%{?gcc_libc_bootstrap:1}
618
--disable-gcov \
619
%endif
620
%else
621
%if 0%{?gcc_libc_bootstrap:1}
622
--disable-gcov --disable-threads --disable-shared \
623
--disable-libmudflap --disable-libssp --disable-libgomp \
624
--disable-libquadmath --disable-libatomic \
625
--without-headers --with-newlib \
626
%endif
627
%endif
628
%if "%{TARGET_ARCH}" == "bpf"
629
--disable-gcov \
630
%endif
631
%if "%{TARGET_ARCH}" == "spu"
632
--with-gxx-include-dir=%sysroot/include/c++/%{gcc_dir_version} \
633
--with-newlib \
634
%endif
635
%if "%{TARGET_ARCH}" == "nvptx"
636
--enable-as-accelerator-for=%{GCCDIST} \
637
--disable-sjlj-exceptions \
638
--enable-newlib-io-long-long \
639
%endif
640
%if "%{TARGET_ARCH}" == "amdgcn"
641
--enable-as-accelerator-for=%{GCCDIST} \
642
--enable-libgomp \
643
%endif
644
%if "%{TARGET_ARCH}" == "avr"
645
--enable-lto \
646
--without-gxx-include-dir \
647
--with-native-system-header-dir=/include \
648
%endif
649
%endif
650
%if "%{TARGET_ARCH}" == "arm-none"
651
--enable-multilib \
652
--with-multilib-list=aprofile,rmprofile \
653
--disable-decimal-float \
654
--disable-libffi \
655
--disable-libgomp \
656
--disable-libmudflap \
657
--disable-libquadmath \
658
--disable-shared \
659
--disable-threads \
660
--disable-tls \
661
%endif
662
%if "%{TARGET_ARCH}" == "armv6hl" || "%{TARGET_ARCH}" == "arm"
663
--with-cpu=arm1176jzf-s \
664
--with-float=hard \
665
--with-abi=aapcs-linux \
666
--with-fpu=vfpv2 \
667
--disable-sjlj-exceptions \
668
%endif
669
%if "%{TARGET_ARCH}" == "armv7hl"
670
--with-cpu=generic-armv7-a \
671
--with-float=hard \
672
--with-abi=aapcs-linux \
673
--with-fpu=vfpv3-d16 \
674
--disable-sjlj-exceptions \
675
%endif
676
%if "%{TARGET_ARCH}" == "aarch64"
677
--enable-fix-cortex-a53-835769 \
678
--enable-fix-cortex-a53-843419 \
679
%endif
680
%if "%{TARGET_ARCH}" == "powerpc64le"
681
%if 0%{?cross_arch:1}
682
--with-glibc-version=2.32 \
683
%endif
684
%if %{suse_version} >= 1600 && !0%{?is_opensuse}
685
--with-cpu=power9 \
686
--with-tune=power9 \
687
%else
688
%if %{suse_version} >= 1350
689
--with-cpu=power8 \
690
--with-tune=power9 \
691
%else
692
%if %{suse_version} >= 1315 && %{suse_version} != 1320
693
--with-cpu=power8 \
694
--with-tune=power8 \
695
%else
696
--with-cpu=power7 \
697
--with-tune=power7 \
698
%endif
699
%endif
700
%endif
701
%if %{suse_version} > 1500
702
--with-long-double-format=ieee \
703
%else
704
--with-long-double-format=ibm \
705
%endif
706
--enable-secureplt \
707
--with-long-double-128 \
708
--enable-targets=powerpcle-linux \
709
--disable-multilib \
710
%endif
711
%if "%{TARGET_ARCH}" == "powerpc" || "%{TARGET_ARCH}" == "powerpc64"
712
%if "%{TARGET_ARCH}" == "powerpc"
713
--with-cpu=default32 \
714
%endif
715
--with-cpu-64=power4 \
716
--enable-secureplt \
717
--with-long-double-128 \
718
%endif
719
%if "%{TARGET_ARCH}" == "sparc64"
720
--with-cpu=ultrasparc \
721
--with-long-double-128 \
722
%endif
723
%if "%{TARGET_ARCH}" == "sparc"
724
--with-cpu=v8 \
725
--with-long-double-128 \
726
%endif
727
%if "%{TARGET_ARCH}" == "i586"
728
%if %{suse_version} >= 1600 && !0%{?is_opensuse}
729
--with-arch-32=x86-64-v2 \
730
%else
731
%if 0%{?sle_version:%sle_version} >= 150000
732
--with-arch-32=x86-64 \
733
%else
734
--with-arch-32=i586 \
735
%endif
736
%endif
737
--with-tune=generic \
738
%endif
739
%if "%{TARGET_ARCH}" == "x86_64"
740
%ifnarch %{disable_multilib_arch}
741
--enable-multilib \
742
%if %{suse_version} >= 1600 && !0%{?is_opensuse}
743
--with-arch-32=x86-64-v2 \
744
%else
745
--with-arch-32=x86-64 \
746
%endif
747
%endif
748
%if %{suse_version} >= 1600 && !0%{?is_opensuse}
749
--with-arch=x86-64-v2 \
750
%endif
751
--with-tune=generic \
752
%endif
753
%if "%{TARGET_ARCH}" == "s390" || "%{TARGET_ARCH}" == "s390x"
754
%if %{suse_version} >= 1600 && !0%{?is_opensuse}
755
--with-tune=z14 --with-arch=z14 \
756
%else
757
%if %{suse_version} >= 1310
758
--with-tune=zEC12 --with-arch=z196 \
759
%else
760
--with-tune=z9-109 --with-arch=z900 \
761
%endif
762
%endif
763
--with-long-double-128 \
764
--enable-decimal-float \
765
%if 0%{?cross_arch:1}
766
--disable-multilib \
767
%endif
768
%endif
769
%if "%{TARGET_ARCH}" == "m68k"
770
--disable-multilib \
771
%endif
772
%if "%{TARGET_ARCH}" == "riscv64"
773
--disable-multilib \
774
%endif
775
%if %{with bootstrap}
776
%if %{use_lto_bootstrap} && !0%{?building_testsuite:1}
777
--with-build-config=bootstrap-lto-lean \
778
%endif
779
%else
780
--disable-bootstrap \
781
%endif
782
--enable-link-serialization \
783
$CONFARGS \
784
--build=%{GCCDIST} \
785
--host=%{GCCDIST} || \
786
{
787
rc=$?;
788
echo "------- BEGIN config.log ------";
789
%{__cat} config.log;
790
echo "------- END config.log ------";
791
exit $rc;
792
}
793
794
%if 0%{!?gcc_icecream:1}
795
make %{?make_output_sync} %{?_smp_mflags}
796
%else
797
make %{?make_output_sync} %{?_smp_mflags} all-host
798
%endif
799
800
%if 0%{?gcc_icecream:%gcc_icecream}
801
%package -n cross-%cross_arch-gcc13-icecream-backend
802
Summary: Icecream backend for the GNU C Compiler
803
Group: Development/Languages/C and C++
804
805
%description -n cross-%cross_arch-gcc13-icecream-backend
806
This package contains the icecream environment for the GNU C Compiler
807
%endif
808
809
%if 0%{?nvptx_newlib:1}
810
%package -n cross-nvptx-newlib13-devel
811
Summary: Newlib for the nvptx offload target
812
Group: Development/Languages/C and C++
813
Provides: cross-nvptx-newlib-devel = %{version}-%{release}
814
Conflicts: cross-nvptx-newlib-devel
815
816
%description -n cross-nvptx-newlib13-devel
817
Newlib development files for the nvptx offload target compiler.
818
%endif
819
820
%if 0%{?amdgcn_newlib:1}
821
%package -n cross-amdgcn-newlib13-devel
822
Summary: Newlib for the amdgcn offload target
823
Group: Development/Languages/C and C++
824
Provides: cross-amdgcn-newlib-devel = %{version}-%{release}
825
Conflicts: cross-amdgcn-newlib-devel
826
827
%description -n cross-amdgcn-newlib13-devel
828
Newlib development files for the amdgcn offload target compiler.
829
%endif
830
831
%define targetlibsubdir %{_libdir}/gcc/%{gcc_target_arch}/%{gcc_dir_version}
832
833
%install
834
cd obj-%{GCCDIST}
835
836
%if "%{TARGET_ARCH}" == "amdgcn"
837
# libtool needs to be able to call ranlib
838
export PATH="`pwd`/target-tools/bin:$PATH"
839
%endif
840
841
# install and fixup host parts
842
make DESTDIR=$RPM_BUILD_ROOT install-host
843
rm -rf $RPM_BUILD_ROOT/%{targetlibsubdir}/install-tools
844
rm -f $RPM_BUILD_ROOT/%{targetlibsubdir}/liblto_plugin.la
845
# common fixup
846
rm -f $RPM_BUILD_ROOT%{_libdir}/libiberty.a
847
848
# install and fixup target parts
849
%if 0%{?gcc_icecream:1}
850
# so expect the sysroot to be populated from natively built binaries
851
%else
852
# We want shared libraries to reside in the sysroot but the .so symlinks
853
# on the host. Once we have a cross target that has shared libs we need
854
# to manually fix up things here like we do for non-cross compilers
855
mkdir -p $RPM_BUILD_ROOT/%{?sysroot:%sysroot}
856
make DESTDIR=$RPM_BUILD_ROOT install-target
857
%if %{build_cp}
858
# So we installed libstdc++ headers into %prefix where they conflict
859
# with other host compilers. Rip out the non-target specific parts
860
# again. Note not all cross targets support libstdc++, so create the
861
# directory to make things easier.
862
mkdir -p $RPM_BUILD_ROOT/%_prefix/include/c++/%{gcc_dir_version}
863
find $RPM_BUILD_ROOT/%_prefix/include/c++/%{gcc_dir_version} -mindepth 1 -maxdepth 1 -type d -a -not -name %{gcc_target_arch} | xargs -r rm -r
864
find $RPM_BUILD_ROOT/%_prefix/include/c++/%{gcc_dir_version} -maxdepth 1 -type f | xargs -r rm
865
# And also remove installed pretty printers which conflict in similar ways
866
rm -rf $RPM_BUILD_ROOT/%{_datadir}/gcc%{binsuffix}
867
%endif
868
%endif
869
870
%if 0%{?binutils_os:1}
871
for prog in as ld; do
872
ln -s /usr/%{binutils_os}/bin/$prog $RPM_BUILD_ROOT%{targetlibsubdir}/
873
done
874
%endif
875
876
# remove docs
877
rm -rf $RPM_BUILD_ROOT%{_mandir}
878
rm -rf $RPM_BUILD_ROOT%{_infodir}
879
880
# for accelerators remove all frontends but lto1 and also install-tools
881
%if 0%{?gcc_accel:1}
882
rm -f $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch}/cc1
883
rm -f $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch}/cc1plus
884
rm -rf $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch}/install-tools
885
rm -rf $RPM_BUILD_ROOT%{targetlibsubdir}/install-tools
886
# also move things from target directories into the accel path since
887
# that is the place where we later search for (only)
888
( cd $RPM_BUILD_ROOT%{targetlibsubdir} && tar cf - . ) | ( cd $RPM_BUILD_ROOT%{libsubdir}/accel/%{gcc_target_arch} && tar xf - )
889
rm -rf $RPM_BUILD_ROOT%{targetlibsubdir}
890
%endif
891
# for amdgcn install the symlinks to the llvm tools
892
# follow alternatives symlinks to the hardcoded version requirement
893
%if "%{TARGET_ARCH}" == "amdgcn"
894
mkdir -p $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin
895
ln -s /usr/bin/llvm-ar-%{product_libs_llvm_ver}* $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/ar
896
ln -s /usr/bin/llvm-mc-%{product_libs_llvm_ver}* $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/as
897
ln -s /usr/bin/lld $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/ld
898
ln -s /usr/bin/llvm-nm-%{product_libs_llvm_ver}* $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/nm
899
ln -s /usr/bin/llvm-ranlib-%{product_libs_llvm_ver}* $RPM_BUILD_ROOT%{_prefix}/amdgcn-amdhsa/bin/ranlib
900
ln -s %{_prefix}/amdgcn-amdhsa/bin/ar $RPM_BUILD_ROOT%{_prefix}/bin/amdgcn-amdhsa-ar
901
ln -s %{_prefix}/amdgcn-amdhsa/bin/as $RPM_BUILD_ROOT%{_prefix}/bin/amdgcn-amdhsa-as
902
ln -s %{_prefix}/amdgcn-amdhsa/bin/ld $RPM_BUILD_ROOT%{_prefix}/bin/amdgcn-amdhsa-ld
903
ln -s %{_prefix}/amdgcn-amdhsa/bin/nm $RPM_BUILD_ROOT%{_prefix}/bin/amdgcn-amdhsa-nm
904
ln -s %{_prefix}/amdgcn-amdhsa/bin/ranlib $RPM_BUILD_ROOT%{_prefix}/bin/amdgcn-amdhsa-ranlib
905
%endif
906
907
%if 0%{?gcc_icecream:%gcc_icecream}
908
# Build an icecream environment
909
# The assembler comes from the cross-binutils, and hence is _not_
910
# named funnily, not even on ppc, so there we need the original target
911
install -s -D %{_prefix}/bin/%{binutils_os}-as \
912
$RPM_BUILD_ROOT/env/usr/bin/as
913
install -s $RPM_BUILD_ROOT/%{_prefix}/bin/%{gcc_target_arch}-g++%{binsuffix} \
914
$RPM_BUILD_ROOT/env/usr/bin/g++
915
install -s $RPM_BUILD_ROOT/%{_prefix}/bin/%{gcc_target_arch}-gcc%{binsuffix} \
916
$RPM_BUILD_ROOT/env/usr/bin/gcc
917
918
for back in cc1 cc1plus; do
919
install -s -D $RPM_BUILD_ROOT/%{targetlibsubdir}/$back \
920
$RPM_BUILD_ROOT/env%{targetlibsubdir}/$back
921
done
922
if test -f $RPM_BUILD_ROOT/%{targetlibsubdir}/liblto_plugin.so; then
923
install -s -D $RPM_BUILD_ROOT/%{targetlibsubdir}/liblto_plugin.so \
924
$RPM_BUILD_ROOT/env%{targetlibsubdir}/liblto_plugin.so
925
fi
926
927
# Make sure to also pull in all shared library requirements for the
928
# binaries we put into the environment which is operated by chrooting
929
# into it and execing the compiler
930
libs=`for bin in $RPM_BUILD_ROOT/env/usr/bin/* $RPM_BUILD_ROOT/env%{targetlibsubdir}/*; do \
931
ldd $bin | sed -n '\,^[^/]*\(/[^ ]*\).*,{ s//\1/; p; }' ;\
932
done | sort -u `
933
for lib in $libs; do
934
# Check wether the same library also exists in the parent directory,
935
# and prefer that on the assumption that it is a more generic one.
936
baselib=`echo "$lib" | sed 's,/[^/]*\(/[^/]*\)$,\1,'`
937
test -f "$baselib" && lib=$baselib
938
install -s -D $lib $RPM_BUILD_ROOT/env$lib
939
done
940
941
cd $RPM_BUILD_ROOT/env
942
tar --no-recursion --mtime @${SOURCE_DATE_EPOCH:-$(date +%s)} --format=gnu -cv `find *|LC_ALL=C sort` |\
943
gzip -n9 > ../%{name}_%{_arch}.tar.gz
944
cd ..
945
mkdir -p usr/share/icecream-envs
946
mv %{name}_%{_arch}.tar.gz usr/share/icecream-envs
947
rpm -q --changelog glibc > usr/share/icecream-envs/%{name}_%{_arch}.glibc
948
rpm -q --changelog binutils > usr/share/icecream-envs/%{name}_%{_arch}.binutils
949
rm -r env
950
%endif
951
952
# we provide update-alternatives for selecting a compiler version for
953
# crosses
954
%if 0%{!?gcc_accel:1}
955
mkdir -p %{buildroot}%{_sysconfdir}/alternatives
956
for ex in gcc cpp \
957
%if %{build_cp}
958
c++ g++ \
959
%endif
960
gcc-ar gcc-nm gcc-ranlib lto-dump \
961
%if 0%{!?gcc_libc_bootstrap:1} && "%{cross_arch}" != "bpf"
962
gcov gcov-dump gcov-tool \
963
%endif
964
; do
965
ln -s %{_sysconfdir}/alternatives/%{gcc_target_arch}-$ex \
966
%{buildroot}%{_bindir}/%{gcc_target_arch}-$ex
967
done
968
969
%post
970
%{_sbindir}/update-alternatives \
971
--install %{_bindir}/%{gcc_target_arch}-gcc %{gcc_target_arch}-gcc %{_bindir}/%{gcc_target_arch}-gcc%{binsuffix} 13 \
972
--slave %{_bindir}/%{gcc_target_arch}-cpp %{gcc_target_arch}-cpp %{_bindir}/%{gcc_target_arch}-cpp%{binsuffix} \
973
%if %{build_cp}
974
--slave %{_bindir}/%{gcc_target_arch}-c++ %{gcc_target_arch}-c++ %{_bindir}/%{gcc_target_arch}-c++%{binsuffix} \
975
--slave %{_bindir}/%{gcc_target_arch}-g++ %{gcc_target_arch}-g++ %{_bindir}/%{gcc_target_arch}-g++%{binsuffix} \
976
%endif
977
%if 0%{!?gcc_libc_bootstrap:1} && "%{cross_arch}" != "bpf"
978
--slave %{_bindir}/%{gcc_target_arch}-gcov %{gcc_target_arch}-gcov %{_bindir}/%{gcc_target_arch}-gcov%{binsuffix} \
979
--slave %{_bindir}/%{gcc_target_arch}-gcov-dump %{gcc_target_arch}-gcov-dump %{_bindir}/%{gcc_target_arch}-gcov-dump%{binsuffix} \
980
--slave %{_bindir}/%{gcc_target_arch}-gcov-tool %{gcc_target_arch}-gcov-tool %{_bindir}/%{gcc_target_arch}-gcov-tool%{binsuffix} \
981
%endif
982
--slave %{_bindir}/%{gcc_target_arch}-gcc-ar %{gcc_target_arch}-gcc-ar %{_bindir}/%{gcc_target_arch}-gcc-ar%{binsuffix} \
983
--slave %{_bindir}/%{gcc_target_arch}-gcc-nm %{gcc_target_arch}-gcc-nm %{_bindir}/%{gcc_target_arch}-gcc-nm%{binsuffix} \
984
--slave %{_bindir}/%{gcc_target_arch}-lto-dump %{gcc_target_arch}-lto-dump %{_bindir}/%{gcc_target_arch}-lto-dump%{binsuffix} \
985
--slave %{_bindir}/%{gcc_target_arch}-gcc-ranlib %{gcc_target_arch}-gcc-ranlib %{_bindir}/%{gcc_target_arch}-gcc-ranlib%{binsuffix}
986
987
%postun
988
if [ ! -f %{_bindir}/%{gcc_target_arch}-gcc ] ; then
989
%{_sbindir}/update-alternatives --remove %{gcc_target_arch}-gcc %{_bindir}/%{gcc_target_arch}-gcc%{binsuffix}
990
fi
991
%endif
992
993
%files
994
%defattr(-,root,root)
995
%if 0%{?gcc_accel:1}
996
%{_prefix}/bin/%{GCCDIST}-accel-%{gcc_target_arch}-*
997
%dir %{libsubdir}
998
%dir %{libsubdir}/accel
999
%{libsubdir}/accel/%{gcc_target_arch}
1000
%if "%{cross_arch}" == "amdgcn"
1001
%{_prefix}/%{gcc_target_arch}/bin
1002
%{_prefix}/bin/amdgcn-amdhsa-ar
1003
%{_prefix}/bin/amdgcn-amdhsa-as
1004
%{_prefix}/bin/amdgcn-amdhsa-ld
1005
%{_prefix}/bin/amdgcn-amdhsa-nm
1006
%{_prefix}/bin/amdgcn-amdhsa-ranlib
1007
%endif
1008
%else
1009
%{_prefix}/bin/%{gcc_target_arch}-gcc%{binsuffix}
1010
%{_prefix}/bin/%{gcc_target_arch}-cpp%{binsuffix}
1011
%{_prefix}/bin/%{gcc_target_arch}-gcc-ar%{binsuffix}
1012
%{_prefix}/bin/%{gcc_target_arch}-gcc-nm%{binsuffix}
1013
%{_prefix}/bin/%{gcc_target_arch}-gcc-ranlib%{binsuffix}
1014
%{_prefix}/bin/%{gcc_target_arch}-lto-dump%{binsuffix}
1015
%if 0%{!?gcc_libc_bootstrap:1} && "%{cross_arch}" != "bpf"
1016
%{_prefix}/bin/%{gcc_target_arch}-gcov%{binsuffix}
1017
%{_prefix}/bin/%{gcc_target_arch}-gcov-dump%{binsuffix}
1018
%{_prefix}/bin/%{gcc_target_arch}-gcov-tool%{binsuffix}
1019
%{_prefix}/bin/%{gcc_target_arch}-gcov
1020
%{_prefix}/bin/%{gcc_target_arch}-gcov-dump
1021
%{_prefix}/bin/%{gcc_target_arch}-gcov-tool
1022
%endif
1023
%{_prefix}/bin/%{gcc_target_arch}-gcc
1024
%{_prefix}/bin/%{gcc_target_arch}-cpp
1025
%{_prefix}/bin/%{gcc_target_arch}-gcc-ar
1026
%{_prefix}/bin/%{gcc_target_arch}-gcc-nm
1027
%{_prefix}/bin/%{gcc_target_arch}-gcc-ranlib
1028
%{_prefix}/bin/%{gcc_target_arch}-lto-dump
1029
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc
1030
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-cpp
1031
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc-ar
1032
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc-nm
1033
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc-ranlib
1034
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-lto-dump
1035
%if 0%{!?gcc_libc_bootstrap:1} && "%{cross_arch}" != "bpf"
1036
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcov
1037
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcov-dump
1038
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcov-tool
1039
%endif
1040
%if %{build_cp}
1041
%{_prefix}/bin/%{gcc_target_arch}-c++%{binsuffix}
1042
%{_prefix}/bin/%{gcc_target_arch}-g++%{binsuffix}
1043
%{_prefix}/bin/%{gcc_target_arch}-c++
1044
%{_prefix}/bin/%{gcc_target_arch}-g++
1045
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-c++
1046
%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-g++
1047
%if 0%{!?gcc_libc_bootstrap:1}
1048
%if "%{cross_arch}" == "avr" || 0%{?gcc_target_newlib:1} || 0%{?gcc_target_glibc:1}
1049
%{_prefix}/include/c++
1050
%endif
1051
%endif
1052
%endif
1053
%dir %{targetlibsubdir}
1054
%dir %{_libdir}/gcc/%{gcc_target_arch}
1055
%{targetlibsubdir}
1056
%endif
1057
%if 0%{!?gcc_icecream:1} && 0%{!?gcc_libc_bootstrap:1} && 0%{?sysroot:1}
1058
%{sysroot}
1059
%endif
1060
1061
%if 0%{?gcc_icecream:%gcc_icecream}
1062
%files -n cross-%cross_arch-gcc13-icecream-backend
1063
%defattr(-,root,root)
1064
/usr/share/icecream-envs
1065
%endif
1066
1067
%if 0%{?nvptx_newlib:1}
1068
%files -n cross-nvptx-newlib13-devel
1069
%defattr(-,root,root)
1070
%{_prefix}/%{gcc_target_arch}
1071
%endif
1072
1073
%if 0%{?amdgcn_newlib:1}
1074
%files -n cross-amdgcn-newlib13-devel
1075
%defattr(-,root,root)
1076
%{_prefix}/%{gcc_target_arch}
1077
%exclude %{_prefix}/%{gcc_target_arch}/bin
1078
%endif
1079
1080
%changelog
1081