1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
|
#
# spec file for package gcc49
#
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2015 Tizen
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.tizen.org/
#
# we use %%{?macro: ... } as it is more compact
%if 0%{?run_tests}
%define gcc_run_tests 1
%endif
%define tsan_arch x86_64 aarch64
%define asan_arch x86_64 %ix86 ppc ppc64 %sparc %arm aarch64
%define itm_arch x86_64 %ix86 %arm ppc ppc64 ppc64le s390 s390x %sparc aarch64
%define atomic_arch x86_64 %ix86 %arm aarch64 ppc ppc64 ppc64le s390 s390x %sparc m68k
%define lsan_arch x86_64 aarch64 %arm %ix86
%define ubsan_arch x86_64 %ix86 ppc ppc64 %arm aarch64
%define cilkrts_arch x86_64 %ix86
%ifarch armv7l
%define ARCH armv7l
%define ABI eabi
%endif
%ifarch %ix86
%define ARCH i586
%endif
%ifarch x86_64
%define ARCH x86_64
%endif
%ifarch aarch64
%define ARCH aarch64
%endif
%define host_arch %{ARCH}-tizen-linux-gnu%{?ABI}
%define target_cpu %{?cross}%{!?cross:%{ARCH}}
%define target_abi %{?cross:%{?armv7l:eabi}}%{!?cross:%{?ABI}}
%define target_arch %{target_cpu}-tizen-linux-gnu%{?target_abi}
%define libdir %{!?cross:%{_libdir}}%{?cross:%{_prefix}/lib%{?aarch64:64}}
%define libsubdir %{libdir}/gcc/%{target_arch}/%{version}
Name: gcc%{?cross:-%{cross}}
# With generated files in src we could drop the following
BuildRequires: bison
BuildRequires: flex
BuildRequires: gettext-devel
BuildRequires: makeinfo
## until here, but at least renaming and patching info files breaks this
BuildRequires: gcc-c++
BuildRequires: zlib-devel
%ifarch x86_64
BuildRequires: glibc-devel-32bit
%endif
BuildRequires: perl
%{?cross:BuildRequires: binutils-%{cross}}
# here we use %%if because OBS spec parser cannot expand
# %%{?macro:...} correctly
%if 0%{?gcc_run_tests}
BuildRequires: dejagnu
BuildRequires: expect
BuildRequires: gdb
%endif
URL: http://gcc.gnu.org/
Version: 4.9.2
Release: 0
Source: gcc-%{version}.tar.bz2
Source10: gmp-6.0.0b.tar.bz2
Source11: mpfr-3.1.2.tar.gz
Source12: mpc-1.0.tar.gz
Source13: isl-0.12.2.tar.bz2
Source14: cloog-0.18.1.tar.gz
Source15: gcc-force-options
Source16: gcc-unforce-options
Source17: ASAN_OPTIONS
Source18: asan_symbolize.py
Source19: LSAN_OPTIONS
Source20: gcc.manifest
Source21: UBSAN_OPTIONS
Source22: macros.ubsan
Source23: extract-ubsan-logs
Source24: lsan.supp
Group: Development/Building
Summary: The GNU C Compiler and Support Files
License: GPL-3.0+
%{?cross:ExcludeArch: %{cross}}
%description
Core package for the GNU Compiler Collection, including the C language
frontend.
%package c++
Summary: The GNU C++ Compiler
License: GPL-3.0+
Group: Development/Languages
%description c++
This package contains the GNU compiler for C++.
%package -n libstdc++
Summary: The standard C++ shared library
License: GPL-3.0-with-GCC-exception
Group: Development/Building
%description -n libstdc++
The standard C++ library, needed for dynamically linked C++ programs.
%post -n libstdc++ -p /sbin/ldconfig
%postun -n libstdc++ -p /sbin/ldconfig
%package -n libstdc++-devel
Summary: Include Files and Libraries mandatory for Development
License: GPL-3.0-with-GCC-exception
Group: Development/Building
%description -n libstdc++-devel
This package contains all the headers and libraries of the standard C++
library. It is needed for compiling C++ code.
%package -n libgcc
Summary: C compiler runtime library
License: GPL-3.0-with-GCC-exception
Group: Development/Building
%description -n libgcc
Libgcc is needed for dynamically linked C programs.
%post -n libgcc -p /sbin/ldconfig
%postun -n libgcc -p /sbin/ldconfig
%package -n libgomp
Summary: The GNU compiler collection OpenMP runtime library
License: GPL-3.0-with-GCC-exception
Group: Development/Building
%description -n libgomp
This is the OpenMP runtime library needed by OpenMP enabled programs
that were built with the -fopenmp compiler option and by programs that
were auto-parallelized via the -ftree-parallelize-loops compiler
option.
%post -n libgomp -p /sbin/ldconfig
%postun -n libgomp -p /sbin/ldconfig
%package objc
Summary: GNU Objective C Compiler
License: GPL-3.0+
Group: Development/Languages
%description objc
This package contains the GNU Objective C compiler. Objective C is an
object oriented language, created by Next Inc. and used in their
Nextstep OS. The source code is available in the gcc package.
%package -n libobjc
Summary: Library for the GNU Objective C Compiler
License: GPL-3.0-with-GCC-exception
Group: Development/Building
%description -n libobjc
The library for the GNU Objective C compiler.
%post -n libobjc -p /sbin/ldconfig
%postun -n libobjc -p /sbin/ldconfig
%package obj-c++
Summary: GNU Objective C++ Compiler
License: GPL-3.0+
Group: Development/Languages
%description obj-c++
This package contains the GNU Objective C++ compiler. Objective C++ is an
object oriented language, created by Next Inc. and used in their
Nextstep OS. The source code is available in the gcc package.
%package -n cpp
Summary: The GCC Preprocessor
License: GPL-3.0+
Group: Development/Languages
%description -n cpp
This Package contains just the preprocessor that is used by the X11
packages.
%package ada
Summary: GNU Ada95 Compiler Based on GCC (GNAT)
License: GPL-3.0+
Group: Development/Languages
%description ada
This package contains an Ada95 compiler and associated development
tools based on the GNU GCC technology. Ada95 is the object oriented
successor of the Ada83 language. To build this package from source you
must have installed a binary version to bootstrap the compiler.
%package -n libada
Summary: GNU Ada Runtime Libraries
License: GPL-3.0-with-GCC-exception
Group: Development/Languages
%description -n libada
This package contains the shared libraries required to run programs
compiled with the GNU Ada compiler (GNAT) if they are compiled to use
shared libraries. It also contains the shared libraries for the
Implementation of the Ada Semantic Interface Specification (ASIS), the
implementation of Distributed Systems Programming (GLADE) and the Posix
1003.5 Binding (Florist).
%post -n libada -p /sbin/ldconfig
%postun -n libada -p /sbin/ldconfig
%package -n libquadmath
Summary: The GNU Fortran Compiler Quadmath Runtime Library
License: LGPL-2.1
Group: Development/Languages
%description -n libquadmath
The runtime library needed to run programs compiled with the Fortran compiler
of the GNU Compiler Collection (GCC) and quadruple precision floating point
operations.
%post -n libquadmath -p /sbin/ldconfig
%postun -n libquadmath -p /sbin/ldconfig
%package -n libitm
Summary: The GNU Compiler Transactional Memory Runtime Library
License: MIT
Group: Development/Languages
%description -n libitm
The runtime library needed to run programs compiled with the
-fgnu-tm option of the GNU Compiler Collection (GCC).
%post -n libitm -p /sbin/ldconfig
%postun -n libitm -p /sbin/ldconfig
%package -n libasan
Summary: The GNU Compiler Address Sanitizer Runtime Library
License: MIT
Group: Development/Languages
%description -n libasan
The runtime library needed to run programs compiled with the
-fsanitize=address option of the GNU Compiler Collection (GCC).
%post -n libasan -p /sbin/ldconfig
%postun -n libasan -p /sbin/ldconfig
%package -n libtsan
Summary: The GNU Compiler Thread Sanitizer Runtime Library
License: MIT
Group: Development/Languages
%description -n libtsan
The runtime library needed to run programs compiled with the
-fsanitize=thread option of the GNU Compiler Collection (GCC).
%post -n libtsan -p /sbin/ldconfig
%postun -n libtsan -p /sbin/ldconfig
%package -n libatomic
Summary: The GNU Compiler Atomic Operations Runtime Library
License: GPL-3.0-with-GCC-exception
Group: Development/Languages
%description -n libatomic
The runtime library for atomic operations of the GNU Compiler Collection (GCC).
%post -n libatomic -p /sbin/ldconfig
%postun -n libatomic -p /sbin/ldconfig
%package -n libcilkrts
Summary: The GNU Compiler Cilk+ Runtime Library
License: MIT
Group: Development/Languages
%description -n libcilkrts
The runtime library needed to run programs compiled with the
-fcilkplus option of the GNU Compiler Collection (GCC).
%post -n libcilkrts -p /sbin/ldconfig
%postun -n libcilkrts -p /sbin/ldconfig
%package -n liblsan
Summary: The GNU Compiler Leak Sanitizer Runtime Library
License: MIT
Group: Development/Languages
%description -n liblsan
The runtime library needed to run programs compiled with the
-fsanitize=leak option of the GNU Compiler Collection (GCC).
%post -n liblsan -p /sbin/ldconfig
%postun -n liblsan -p /sbin/ldconfig
%package -n libubsan
Summary: The GNU Compiler Undefined Sanitizer Runtime Library
License: MIT
Group: Development/Languages
%description -n libubsan
The runtime library needed to run programs compiled with the
-fsanitize=undefined option of the GNU Compiler Collection (GCC).
%post -n libubsan -p /sbin/ldconfig
%postun -n libubsan -p /sbin/ldconfig
%package -n libvtv
Summary: The GNU Compiler Vtable Verifier Runtime Library
License: MIT
Group: Development/Languages
%description -n libvtv
The runtime library needed to run programs compiled with the
-fvtable-verify option of the GNU Compiler Collection (GCC).
%post -n libvtv -p /sbin/ldconfig
%postun -n libvtv -p /sbin/ldconfig
%package -n libgcj
Summary: Java Runtime Library for gcc
License: GPL-2.0-with-classpath-exception
Group: Development/Building
%description -n libgcj
This library is needed if you want to use the GNU Java compiler, gcj.
Source code for this package is in gcc.
%post -n libgcj -p /sbin/ldconfig
%postun -n libgcj -p /sbin/ldconfig
%package java
Summary: The GNU Java Compiler
License: GPL-3.0+
Group: Development/Languages
%description java
The Java compiler from the GCC-tools-suite.
%package -n libgcj_bc
Summary: Fake library for BC-ABI compatibility.
License: GPL-2.0-with-classpath-exception
Group: Development/Languages
%description -n libgcj_bc
A fake library that is used at link time only. It ensures that
binaries built with the BC-ABI link against a constant SONAME.
This way, BC-ABI binaries continue to work if the SONAME underlying
libgcj.so changes.
%package -n libgcj-jar
Summary: Java runtime library (jar files).
License: GPL-2.0-with-classpath-exception
Group: Development/Languages
%description -n libgcj-jar
These are the jar files that go along with the gcj front end to gcc.
%package -n libgcj-devel
Summary: Include Files and Libraries mandatory for Development.
License: GPL-2.0-with-classpath-exception
Group: Development/Languages
%description -n libgcj-devel
This package contains all necessary include files and libraries needed
to develop applications that require these.
%package -n gcc-gij
Summary: Java Bytecode Interpreter for gcc
License: GPL-2.0-with-classpath-exception
Group: Development/Languages
%description -n gcc-gij
This package contains the java bytecode interpreter gij and related tools.
%package -n libffi
Summary: Foreign Function Interface library
License: BSD-3-Clause
Group: Development/Building
%description -n libffi
A foreign function interface is the popular name for the interface that allows code written in one language to call code written in another language.
%post -n libffi -p /sbin/ldconfig
%postun -n libffi -p /sbin/ldconfig
%package -n libffi-devel
Summary: Foreign Function Interface library development files
License: BSD 3-Clause
Group: Development/Building
%description -n libffi-devel
A foreign function interface is the popular name for the interface that allows code written in one language to call code written in another language.
%package go
Summary: GNU Go Compiler
License: GPL-3.0+
Group: Development/Languages
%description go
This package contains a Go compiler and associated development
files based on the GNU GCC technology.
%package -n libgo
Summary: GNU Go compiler runtime library
License: BSD-3-Clause
Group: Development/Languages
%description -n libgo
A foreign function interface is the popular name for the interface that allows code written in one language to call code written in another language.
%post -n libgo -p /sbin/ldconfig
%postun -n libgo -p /sbin/ldconfig
%package testresults
Summary: Testsuite results
License: SUSE-Public-Domain
Group: Development/Languages
%description testresults
Results from running the gcc and target library testsuites.
%package -n gcc-32bit
Summary: The GNU C Compiler 32bit support
Group: Development/Building
%description -n gcc-32bit
This package contains 32bit support for the GNU Compiler Collection.
%package -n libstdc++-devel-32bit
Summary: Include Files and Libraries mandatory for Development
License: GPL-3.0-with-GCC-exception
Group: Development/Building
%description -n libstdc++-devel-32bit
This package contains all the headers and libraries of the standard C++
library. It is needed for compiling C++ code.
%package -n libgcc-32bit
Summary: C compiler runtime library
License: GPL-3.0-with-GCC-exception
Group: Development/Building
%description -n libgcc-32bit
Libgcc is needed for dynamically linked C programs.
%post -n libgcc-32bit -p /sbin/ldconfig
%postun -n libgcc-32bit -p /sbin/ldconfig
%package -n libgomp-32bit
Summary: The GNU compiler collection OpenMP runtime library
License: GPL-3.0-with-GCC-exception
Group: Development/Building
%description -n libgomp-32bit
This is the OpenMP runtime library needed by OpenMP enabled programs
that were built with the -fopenmp compiler option and by programs that
were auto-parallelized via the -ftree-parallelize-loops compiler
option.
%post -n libgomp-32bit -p /sbin/ldconfig
%postun -n libgomp-32bit -p /sbin/ldconfig
%package -n libstdc++-32bit
Summary: The standard C++ shared library
License: GPL-3.0-with-GCC-exception
Group: Development/Building
%description -n libstdc++-32bit
The standard C++ library, needed for dynamically linked C++ programs.
%post -n libstdc++-32bit -p /sbin/ldconfig
%postun -n libstdc++-32bit -p /sbin/ldconfig
%package objc-32bit
Summary: GNU Objective C Compiler
License: GPL-3.0+
Group: Development/Languages
%description objc-32bit
This package contains the GNU Objective C compiler. Objective C is an
object oriented language, created by Next Inc. and used in their
Nextstep OS. The source code is available in the gcc package.
%package -n libobjc-32bit
Summary: Library for the GNU Objective C Compiler
License: GPL-3.0-with-GCC-exception
Group: Development/Building
%description -n libobjc-32bit
The library for the GNU Objective C compiler.
%post -n libobjc-32bit -p /sbin/ldconfig
%postun -n libobjc-32bit -p /sbin/ldconfig
%package ada-32bit
Summary: GNU Ada95 Compiler Based on GCC (GNAT)
License: GPL-3.0+
Group: Development/Languages
%description ada-32bit
This package contains an Ada95 compiler and associated development
tools based on the GNU GCC technology. Ada95 is the object oriented
successor of the Ada83 language. To build this package from source you
must have installed a binary version to bootstrap the compiler.
%package -n libada-32bit
Summary: GNU Ada Runtime Libraries
License: GPL-3.0-with-GCC-exception
Group: Development/Languages
%description -n libada-32bit
This package contains the shared libraries required to run programs
compiled with the GNU Ada compiler (GNAT) if they are compiled to use
shared libraries. It also contains the shared libraries for the
Implementation of the Ada Semantic Interface Specification (ASIS), the
implementation of Distributed Systems Programming (GLADE) and the Posix
1003.5 Binding (Florist).
%post -n libada-32bit -p /sbin/ldconfig
%postun -n libada-32bit -p /sbin/ldconfig
%package -n libquadmath-32bit
Summary: The GNU Fortran Compiler Quadmath Runtime Library
License: LGPL-2.1
Group: Development/Languages
%description -n libquadmath-32bit
The runtime library needed to run programs compiled with the Fortran compiler
of the GNU Compiler Collection (GCC) and quadruple precision floating point
operations.
%post -n libquadmath-32bit -p /sbin/ldconfig
%postun -n libquadmath-32bit -p /sbin/ldconfig
%package -n libitm-32bit
Summary: The GNU Compiler Transactional Memory Runtime Library
License: MIT
Group: Development/Languages
%description -n libitm-32bit
The runtime library needed to run programs compiled with the
-fgnu-tm option of the GNU Compiler Collection (GCC).
%post -n libitm-32bit -p /sbin/ldconfig
%postun -n libitm-32bit -p /sbin/ldconfig
%package -n libasan-32bit
Summary: The GNU Compiler Address Sanitizer Runtime Library
License: MIT
Group: Development/Languages
%description -n libasan-32bit
The runtime library needed to run programs compiled with the
-fsanitize=address option of the GNU Compiler Collection (GCC).
%post -n libasan-32bit -p /sbin/ldconfig
%postun -n libasan-32bit -p /sbin/ldconfig
%package -n libtsan-32bit
Summary: The GNU Compiler Thread Sanitizer Runtime Library
License: MIT
Group: Development/Languages
%description -n libtsan-32bit
The runtime library needed to run programs compiled with the
-fsanitize=thread option of the GNU Compiler Collection (GCC).
%post -n libtsan-32bit -p /sbin/ldconfig
%postun -n libtsan-32bit -p /sbin/ldconfig
%package -n libatomic-32bit
Summary: The GNU Compiler Atomic Operations Runtime Library
License: GPL-3.0-with-GCC-exception
Group: Development/Languages
%description -n libatomic-32bit
The runtime library for atomic operations of the GNU Compiler Collection (GCC).
%post -n libatomic-32bit -p /sbin/ldconfig
%postun -n libatomic-32bit -p /sbin/ldconfig
%package -n libcilkrts-32bit
Summary: The GNU Compiler Cilk+ Runtime Library
License: MIT
Group: Development/Languages
%description -n libcilkrts-32bit
The runtime library needed to run programs compiled with the
-fcilkplus option of the GNU Compiler Collection (GCC).
%post -n libcilkrts-32bit -p /sbin/ldconfig
%postun -n libcilkrts-32bit -p /sbin/ldconfig
%package -n liblsan-32bit
Summary: The GNU Compiler Leak Sanitizer Runtime Library
License: MIT
Group: Development/Languages
%description -n liblsan-32bit
The runtime library needed to run programs compiled with the
-fsanitize=leak option of the GNU Compiler Collection (GCC).
%post -n liblsan-32bit -p /sbin/ldconfig
%postun -n liblsan-32bit -p /sbin/ldconfig
%package -n libubsan-32bit
Summary: The GNU Compiler Undefined Sanitizer Runtime Library
License: MIT
Group: Development/Languages
%description -n libubsan-32bit
The runtime library needed to run programs compiled with the
-fsanitize=undefined option of the GNU Compiler Collection (GCC).
%post -n libubsan-32bit -p /sbin/ldconfig
%postun -n libubsan-32bit -p /sbin/ldconfig
%package -n libvtv-32bit
Summary: The GNU Compiler Vtable Verifier Runtime Library
License: MIT
Group: Development/Languages
%description -n libvtv-32bit
The runtime library needed to run programs compiled with the
-fvtable-verify option of the GNU Compiler Collection (GCC).
%post -n libvtv-32bit -p /sbin/ldconfig
%postun -n libvtv-32bit -p /sbin/ldconfig
%package -n libffi-32bit
Summary: Foreign Function Interface library
License: BSD-3-Clause
Group: Development/Building
%description -n libffi-32bit
A foreign function interface is the popular name for the interface that allows code written in one language to call code written in another language.
%post -n libffi-32bit -p /sbin/ldconfig
%postun -n libffi-32bit -p /sbin/ldconfig
%package -n libffi-devel-32bit
Summary: Foreign Function Interface library development files
License: BSD 3-Clause
Group: Development/Building
%description -n libffi-devel-32bit
A foreign function interface is the popular name for the interface that allows code written in one language to call code written in another language.
%package go-32bit
Summary: GNU Go Compiler
License: GPL-3.0+
Group: Development/Languages
%description go-32bit
This package contains a Go compiler and associated development
files based on the GNU GCC technology.
%package -n libgo-32bit
Summary: GNU Go compiler runtime library
License: BSD-3-Clause
Group: Development/Languages
%description -n libgo-32bit
A foreign function interface is the popular name for the interface that allows code written in one language to call code written in another language.
%post -n libgo-32bit -p /sbin/ldconfig
%postun -n libgo-32bit -p /sbin/ldconfig
%package -n asan-force-options
Summary: Scripts to enable automatic package sanitization
Group: System Environment
Requires: gcc rpm
Requires: libasan
%description -n asan-force-options
Scripts for ASan instrumentation
%post -n asan-force-options
# Change mode to allow all users to run gcc-force/unforce-options
chmod a+w /usr/bin
[ -d /emul/ ] && chmod a+w /emul/usr/bin/ && chmod a+w /emul/home/abuild/rpmbuild/BUILD/gcc-4.9.2/obj/gcc/
/usr/bin/gcc-force-options -fsanitize-recover=address -fsanitize=address -fno-common -fno-omit-frame-pointer -U_FORTIFY_SOURCE
# Add restore_fcommon macro
cat >> /usr/lib/rpm/tizen_macros << EOF
%restore_fcommon \\
/usr/bin/gcc-unforce-options \\
/usr/bin/gcc-force-options -fsanitize-recover=address -fsanitize=address -fcommon -fno-omit-frame-pointer -U_FORTIFY_SOURCE
EOF
%preun -n asan-force-options
# Restore read-only mode
chmod a-w /usr/bin
[ -d /emul/ ] && chmod a-w /emul/usr/bin/ && chmod a-w /emul/home/abuild/rpmbuild/BUILD/gcc-4.9.2/obj/gcc/
/usr/bin/gcc-unforce-options
%package -n ubsan-force-options
Summary: Scripts to enable automatic package sanitization
Group: System Environment
Requires: gcc
Requires: libubsan
%description -n ubsan-force-options
Scripts for UBSan instrumentation
%post -n ubsan-force-options
# Change mode to allow all users to run gcc-force/unforce-options
chmod a+w /usr/bin
[ -d /emul/ ] && chmod a+w /emul/usr/bin/ && chmod a+w /emul/home/abuild/rpmbuild/BUILD/gcc-4.9.2/obj/gcc/
/usr/bin/gcc-force-options -fsanitize=undefined,bounds-strict,float-divide-by-zero,float-cast-overflow
%preun -n ubsan-force-options
# Restore read-only mode
chmod a-w /usr/bin
[ -d /emul/ ] && chmod a-w /emul/usr/bin/ && chmod a-w /emul/home/abuild/rpmbuild/BUILD/gcc-4.9.2/obj/gcc/
/usr/bin/gcc-unforce-options
%package -n ubsan-build-env
Summary: UBSan build environment
Group: System Environment
Requires: gcc
Requires: libubsan rpm
%description -n ubsan-build-env
UBSan build environment support files and scripts
%post -n ubsan-build-env
cat %{_rpmconfigdir}/macros.ubsan >> %{_rpmconfigdir}/tizen_macros
%package -n lsan-force-options
Summary: Scripts to enable automatic package sanitization
Group: System Environment
Requires: gcc
Requires: liblsan
%description -n lsan-force-options
Scripts for LSan instrumentation
%post -n lsan-force-options
# Change mode to allow all users to run gcc-force/unforce-options
chmod a+w /usr/bin
[ -d /emul/ ] && chmod a+w /emul/usr/bin/ && chmod a+w /emul/home/abuild/rpmbuild/BUILD/gcc-4.9.2/obj/gcc/
/usr/bin/gcc-force-options -fsanitize=leak -fno-omit-frame-pointer -U_FORTIFY_SOURCE
%preun -n lsan-force-options
# Restore read-only mode
chmod a-w /usr/bin
[ -d /emul/ ] && chmod a-w /emul/usr/bin/ && chmod a-w /emul/home/abuild/rpmbuild/BUILD/gcc-4.9.2/obj/gcc/
/usr/bin/gcc-unforce-options
[ -d /emul/ ] && chmod a-w /emul/usr/bin/
%package -n asan-build-env
Summary: Asan build environment
Group: Development/Libraries
Requires: libasan
%description -n asan-build-env
Asan build environment
%post -n asan-build-env
# Add /usr/lib/libasan.so to /etc/ld.so.preload
[ -f /etc/ld.so.preload ] && mv -v /etc/ld.so.preload /etc/ld.so.preload.orig
echo "libasan.so" > /etc/ld.so.preload
[ -f /etc/ld.so.preload.orig ] && cat /etc/ld.so.preload.orig >> /etc/ld.so.preload
[ -f /etc/ld.so.preload.orig ] && rm -f /etc/ld.so.preload.orig
%preun -n asan-build-env
# Restore /etc/ld.so.preload
[ -f /etc/ld.so.preload.orig ] && mv -v /etc/ld.so.preload.orig /etc/ld.so.preload
%package -n lsan-runtime-env
Summary: LSan runtime environment
Group: Development/Libraries
Requires: liblsan
Requires(post): smack
%description -n lsan-runtime-env
LSan runtime environment
%post -n lsan-runtime-env
# Add /usr/lib64/liblsan.so to /etc/ld.so.preload
[ -f /etc/ld.so.preload ] && mv -v /etc/ld.so.preload /etc/ld.so.preload.orig
echo "%{libdir}/liblsan.so" > /etc/ld.so.preload
[ -f /etc/ld.so.preload.orig ] && cat /etc/ld.so.preload.orig >> /etc/ld.so.preload
[ -f /etc/ld.so.preload.orig ] && rm -f /etc/ld.so.preload.orig
chsmack -a "_" /etc/ld.so.preload /LSAN_OPTIONS /lsan.supp
%preun -n lsan-runtime-env
# Restore /etc/ld.so.preload
mv -v /etc/ld.so.preload.orig /etc/ld.so.preload
%package -n sanitizer-devel
Summary: Sanitizer platform-independent tools
License: MIT
Group: Development/Tools
BuildArch: noarch
Requires: binutils python
Requires(post): smack
%description -n sanitizer-devel
The package contatins platform-independent tools for sanitization:
- asan_symbolize.py: script for offline symbolization of asan logs
%package -n asan-runtime-env
Summary: Asan runtime environment for target device
Group: Development/Libraries
%description -n asan-runtime-env
Asan runtime environment
%post -n asan-runtime-env
# Add /usr/lib/libasan.so to /etc/ld.so.preload
[ -f /etc/ld.so.preload ] && mv -v /etc/ld.so.preload /etc/ld.so.preload.orig
echo "%{libdir}/libasan.so" > /etc/ld.so.preload
[ -f /etc/ld.so.preload.orig ] && cat /etc/ld.so.preload.orig >> /etc/ld.so.preload
[ -f /etc/ld.so.preload.orig ] && rm -f /etc/ld.so.preload.orig
echo "halt_on_error=false:start_deactivated=true:print_cmdline=true:quarantine_size_mb=1:detect_leaks=0:log_path=/tmp/asan.log:log_exe_path=1" > /ASAN_OPTIONS
chsmack -a "_" /etc/ld.so.preload /ASAN_OPTIONS
%preun -n asan-runtime-env
# Restore /etc/ld.so.preload
[ -f /etc/ld.so.preload.orig ] && mv -v /etc/ld.so.preload.orig /etc/ld.so.preload
%package -n ubsan-runtime-env
Summary: UBSan runtime environment for target device
Group: Development/Libraries
Requires: libubsan
%description -n ubsan-runtime-env
UBSan runtime environment
%post -n ubsan-runtime-env
echo "print_cmdline=true:log_path=/tmp/ubsan.log" > /UBSAN_OPTIONS
%package plugin-devel
Summary: GNU GCC Plugin development files
License: GPL-3.0+
Group: Development/Languages
%description plugin-devel
This package contains GCC Plugin development files needed for compiler
plugins build.
%package -n sanitizer-sources
Summary: Sanitizer family tools sources
License: MIT
Group: Development/Tools
BuildArch: noarch
%description -n sanitizer-sources
Sanitizer family tools sources for external tools.
%prep
%setup -q -n gcc-%{version}
cp %{SOURCE20} .
tar xf %{SOURCE10}
ln -sf gmp-6.0.0 gmp
tar xf %{SOURCE11}
ln -sf mpfr-3.1.2 mpfr
tar xf %{SOURCE12}
ln -sf mpc-1.0 mpc
tar xf %{SOURCE13}
ln -sf isl-0.12.2 isl
tar xf %{SOURCE14}
ln -sf cloog-0.18.1 cloog
echo "" > gcc/DEV-PHASE
%global gcc_release `sed -e 's/^.*-//g' %{_builddir}/gcc-%{version}/gcc/LINARO-VERSION`
%build
rm -rf obj
mkdir obj
cd obj
RPM_OPT_FLAGS=`echo $RPM_OPT_FLAGS|sed -e 's/-fno-rtti//g' -e 's/-fno-exceptions//g' -e 's/-Wmissing-format-attribute//g' -e 's/-fstack-protector//g' -e 's/-ffortify=.//g' -e 's/-Wall//g' -e 's/-m32//g' -e 's/-m64//g' -e 's/-fexceptions//' -e 's/\([[:space:]]\+.*-D_FORTIFY_SOURCE=\)[[:alnum:]]\+/\10/g'
RPM_OPT_FLAGS="$RPM_OPT_FLAGS -D__USE_FORTIFY_LEVEL=0"`
%{?cross:
RPM_OPT_FLAGS=`echo $RPM_OPT_FLAGS|sed -e 's/-m\(arch\|tune\|cpu\)=[^ ]*//g'`
RPM_OPT_FLAGS=`echo $RPM_OPT_FLAGS|sed -e 's/-m\(sse\|fpmath\)[^ ]*//g'`
}
RPM_OPT_FLAGS=`echo $RPM_OPT_FLAGS|sed -e 's/ */ /g'`
%ifarch x86_64
RPM_OPT_FLAGS="$RPM_OPT_FLAGS -L/usr/lib32"
%endif
CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS" XCFLAGS="$RPM_OPT_FLAGS" \
TCFLAGS="$RPM_OPT_FLAGS" GCJFLAGS="$RPM_OPT_FLAGS" \
../configure \
--prefix=%{_prefix} \
--infodir=%{_infodir} \
--mandir=%{_mandir} \
--libdir=%{libdir} \
--libexecdir=%{libdir} \
--enable-languages=c,c++ \
--enable-checking=release \
--disable-libssp \
--disable-bootstrap \
--disable-libvtv \
--enable-plugin \
--disable-libgcj \
--with-slibdir=%{libdir} \
--with-system-zlib \
--with-sysroot=/ \
--enable-__cxa_atexit \
--enable-libstdcxx-allocator=new \
--enable-version-specific-runtime-libs \
--enable-linker-build-id \
--without-system-libunwind \
--enable-threads=posix \
--disable-multilib \
--disable-libquadmath \
--enable-lto \
%{!?cross: \
%ifarch armv7l
--with-arch=armv7-a \
--with-tune=cortex-a8 \
--disable-sjlj-exceptions \
%endif
%ifarch aarch64
--with-arch=armv8-a \
--disable-sjlj-exceptions \
%endif
%ifarch %ix86
--with-arch-32=i586 \
--with-tune=generic \
%endif
%ifarch x86_64
--with-arch-32=i586 \
--with-tune=generic \
--enable-multilib \
%endif
} \
%{?cross: \
%{?armv7l: \
--with-arch=armv7-a \
--with-tune=cortex-a8 \
--disable-sjlj-exceptions \
} \
%{?aarch64: \
--with-arch=armv8-a \
--disable-sjlj-exceptions \
} \
--disable-libgcc \
--disable-libgomp \
--disable-libatomic \
--disable-libstdc++-v3 \
--disable-libsanitizer \
--disable-libitm \
} \
--with-bugurl="http://bugs.tizen.org/" \
--with-pkgversion="Tizen/Linaro GCC %{version} %{gcc_release}" \
--target=%{target_arch} \
--host=%{host_arch} \
--build=%{host_arch}
make BOOT_CFLAGS="$RPM_OPT_FLAGS" %{?_smp_mflags}
%{?gcc_run_tests:
echo "Run testsuite"
# asan needs a whole shadow address space
ulimit -v unlimited || true
make -k check %{?_smp_mflags} || true
mkdir ../testresults
../contrib/test_summary | tee ../testresults/test_summary.txt
}
%install
cd obj
make install DESTDIR=$RPM_BUILD_ROOT
%{?gcc_run_tests:
cp `find . -name "*.sum"` ../testresults/
cp `find . -name "*.log" \! -name "config.log" | grep -v 'acats.\?/tests' ` ../testresults/
chmod 644 ../testresults/*
}
%{remove_docs}
rm -rf %{buildroot}/%{_datadir}/locale
#remove everything we don't need
rm -rf %{buildroot}/%{libsubdir}/install-tools
find %{buildroot}/%{libsubdir} -name "*.la" -exec rm -rf {} +
%{!?cross:
ln -s gcc %{buildroot}%{_bindir}/cc
mv %{buildroot}%{libsubdir}/libstdc++.so*-gdb.py %{buildroot}%{_datadir}/gcc-%{version}/python/libstdcxx/
# expose plugins for ar (required for lto builds)
mkdir -p %{buildroot}%{_prefix}/lib/bfd-plugins
ln -sf %{libsubdir}/liblto_plugin.so %{buildroot}%{_prefix}/lib/bfd-plugins/liblto_plugin.so
# legacy preprocessor
mkdir -p %{buildroot}/lib
ln -s %{_bindir}/cpp %{buildroot}/lib/cpp
# 32-bit libgcc in multilib configuration
%ifarch x86_64
mv %{buildroot}%{_prefix}/lib32/libgcc_s.so* %{buildroot}%{libsubdir}/32/
%endif
# move libraries to libdir
for lib in asan atomic cilkrts gfortran gomp itm lsan quadmath stdc++ supc++ tsan ubsan
do
[ -e %{buildroot}%{libsubdir}/lib$lib.a ] && mv %{buildroot}%{libsubdir}/lib$lib.a %{buildroot}%{libdir}/
[ -e %{buildroot}%{libsubdir}/lib$lib.so ] && mv %{buildroot}%{libsubdir}/lib$lib.so* %{buildroot}%{libdir}/
done
}
%{?cross:
rm -rf %{buildroot}/%{libsubdir}/include-fixed
rm -rf %{buildroot}/%{libsubdir}/include
}
%{!?cross:
cp %{SOURCE15} %{SOURCE16} %{SOURCE18} %{buildroot}%{_prefix}/bin
chmod a+x %{buildroot}%{_prefix}/bin/gcc-force-options
chmod a+x %{buildroot}%{_prefix}/bin/gcc-unforce-options
chmod a+x %{buildroot}%{_prefix}/bin/asan_symbolize.py
cp %{SOURCE17} %{buildroot}
chmod 644 %{buildroot}/ASAN_OPTIONS
%ifarch %lsan_arch
cp %{SOURCE19} %{SOURCE24} %{buildroot}
chmod 644 %{buildroot}/LSAN_OPTIONS
chmod 644 %{buildroot}/lsan.supp
%endif
cd ../
tar -czf libsanitizer.tar.bz libsanitizer
mkdir -p %{buildroot}/src
mv -v libsanitizer.tar.bz %{buildroot}/src
mkdir -p %{buildroot}/%{_rpmconfigdir}/tizen/
install -m 0644 %{SOURCE21} %{buildroot}/
install -m 0644 %{SOURCE22} %{buildroot}/%{_rpmconfigdir}/
install -m 0755 %{SOURCE23} %{buildroot}/%{_rpmconfigdir}/tizen/
}
%files
%manifest gcc.manifest
%defattr(-,root,root)
%{?cross:
%{_bindir}/*
%{libsubdir}/*
}
%{!?cross:
%{_bindir}/gcc
%{_bindir}/cc
%{_bindir}/gcov
%{_bindir}/gcc-ar
%{_bindir}/gcc-nm
%{_bindir}/gcc-ranlib
%{_bindir}/%{target_arch}-gcc
%{_bindir}/%{target_arch}-gcc-%{version}
%{_bindir}/%{target_arch}-gcc-ar
%{_bindir}/%{target_arch}-gcc-nm
%{_bindir}/%{target_arch}-gcc-ranlib
%{libsubdir}/collect2
%{libsubdir}/lto1
%{libsubdir}/lto-wrapper
%{libsubdir}/liblto_plugin.so*
%{_prefix}/lib/bfd-plugins/liblto_plugin.so
%{libsubdir}/include-fixed/*
%{libsubdir}/include/*.h
%{libsubdir}/*.a
%{libsubdir}/*.so
%{libsubdir}/*.o
%{libsubdir}/*.spec
%{libdir}/*.so
%{libdir}/*.a
%ifarch %cilkrts_arch
%{libsubdir}/include/cilk/*
%endif
%{libsubdir}/include/sanitizer/*
%ifarch %asan_arch
%exclude %{libdir}/libasan.so
%endif
%ifarch %lsan_arch
%exclude %{libdir}/liblsan.so
%endif
%ifarch %tsan_arch
%exclude %{libdir}/libtsan.so
%endif
%files c++
%defattr(-,root,root)
%{libsubdir}/cc1plus
%{_bindir}/g++
%{_bindir}/c++
%{_bindir}/%{target_arch}-g++
%{_bindir}/%{target_arch}-c++
%files -n libstdc++
%manifest gcc.manifest
%defattr(-,root,root)
%{libdir}/libstdc++.so.*
%files -n libstdc++-devel
%defattr(-,root,root)
%{libdir}/libstdc++.so
%{libdir}/libstdc++.a
%{libdir}/libsupc++.a
%{libsubdir}/include/c++/*
%{_datadir}/gcc-%{version}/python/libstdcxx/*
%files -n libgcc
%manifest gcc.manifest
%defattr(-,root,root)
%{libdir}/libgcc_s.so.*
%files -n libgomp
%manifest gcc.manifest
%defattr(-,root,root)
%{libdir}/libgomp.so.*
%ifarch %asan_arch
%files -n libasan
%manifest gcc.manifest
%defattr(-,root,root)
%{libdir}/libasan.so*
%endif
%ifarch %lsan_arch
%files -n liblsan
%manifest gcc.manifest
%defattr(-,root,root)
%{libdir}/liblsan.so*
%endif
%ifarch %tsan_arch
%files -n libtsan
%manifest gcc.manifest
%defattr(-,root,root)
%{libdir}/libtsan.so*
%endif
%ifarch %atomic_arch
%files -n libatomic
%manifest gcc.manifest
%defattr(-,root,root)
%{libdir}/libatomic.so.*
%endif
%ifarch %itm_arch
%files -n libitm
%manifest gcc.manifest
%defattr(-,root,root)
%{libdir}/libitm.so.*
%endif
%ifarch %cilkrts_arch
%files -n libcilkrts
%manifest gcc.manifest
%defattr(-,root,root)
%{libdir}/libcilkrts.so.*
%endif
%ifarch %ubsan_arch
%files -n libubsan
%manifest gcc.manifest
%defattr(-,root,root)
%{libdir}/libubsan.so.*
%endif
%ifarch %quadmath_arch
%files -n libquadmath
%manifest gcc.manifest
%defattr(-,root,root)
%{libdir}/libquadmath.so.*
%endif
%files -n cpp
%defattr(-,root,root)
%{_bindir}/cpp
%{libsubdir}/cc1
/lib/cpp
%files plugin-devel
%defattr(-,root,root)
%{libsubdir}/plugin/*
%{?gcc_run_tests:
%files testresults
%defattr(-,root,root)
%doc testresults/test_summary.txt
%doc testresults/*.sum
%doc testresults/*.log
}
%ifarch x86_64
%files -n gcc-32bit
%defattr(-,root,root)
%{libsubdir}/32/crt*
%{libsubdir}/32/*.a
%{libsubdir}/32/*.so
%{libsubdir}/32/*.o
%{libsubdir}/32/*.spec
%ifarch %asan_arch
%files -n libasan-32bit
%manifest gcc.manifest
%defattr(-,root,root)
%{libsubdir}/32/libasan.so.*
%endif
%ifarch %lsan_arch
%files -n liblsan-32bit
%manifest gcc.manifest
%defattr(-,root,root)
%{libsubdir}/32/liblsan.so.*
%endif
%ifarch %atomic_arch
%files -n libatomic-32bit
%manifest gcc.manifest
%defattr(-,root,root)
%{libsubdir}/32/libatomic.so.*
%endif
%ifarch %cilkrts_arch
%files -n libcilkrts-32bit
%defattr(-,root,root)
%{libsubdir}/32/libcilkrts.so.*
%endif
%files -n libgcc-32bit
%manifest gcc.manifest
%defattr(-,root,root)
%{libsubdir}/32/libgcc_s.so.*
%files -n libgomp-32bit
%manifest gcc.manifest
%defattr(-,root,root)
%{libsubdir}/32/libgomp.so.*
%ifarch %itm_arch
%files -n libitm-32bit
%defattr(-,root,root)
%{libsubdir}/32/libitm.so.*
%endif
%ifarch %quadmath_arch
%files -n libquadmath-32bit
%defattr(-,root,root)
%{libsubdir}/32/libquadmath.so.*
%endif
%ifarch %ubsan_arch
%files -n libubsan-32bit
%manifest gcc.manifest
%defattr(-,root,root)
%{libsubdir}/32/libubsan.so.*
%endif
%files -n libstdc++-32bit
%manifest gcc.manifest
%defattr(-,root,root)
%{libsubdir}/32/libstdc++.so.*
%exclude %{libsubdir}/32/libstdc++.so.*-gdb.py
%files -n libstdc++-devel-32bit
%defattr(-,root,root)
%{libsubdir}/32/libstdc++.so.*-gdb.py
%endif
%files -n asan-force-options
%defattr(-,root,root,-)
%{_prefix}/bin/gcc-force-options
%{_prefix}/bin/gcc-unforce-options
%files -n ubsan-force-options
%defattr(-,root,root,-)
%{_prefix}/bin/gcc-force-options
%{_prefix}/bin/gcc-unforce-options
%ifarch %lsan_arch
%files -n lsan-force-options
%manifest gcc.manifest
%defattr(-,root,root,-)
%{_prefix}/bin/gcc-force-options
%{_prefix}/bin/gcc-unforce-options
%endif
%files -n asan-build-env
%defattr(-,root,root,-)
/ASAN_OPTIONS
%files -n asan-runtime-env
%defattr(-,root,root,-)
%ifarch %lsan_arch
%files -n lsan-runtime-env
%defattr(-,root,root,-)
/LSAN_OPTIONS
/lsan.supp
%endif
%ifarch %ubsan_arch
%files -n ubsan-build-env
%defattr(-,root,root,-)
/UBSAN_OPTIONS
%{_rpmconfigdir}/macros.ubsan
%{_rpmconfigdir}/tizen/extract-ubsan-logs
%files -n ubsan-runtime-env
%defattr(-,root,root,-)
%endif
%files -n sanitizer-devel
%defattr(-,root,root,-)
%{_prefix}/bin/asan_symbolize.py
%files -n sanitizer-sources
%defattr(-,root,root,-)
/src/libsanitizer.tar.bz
}
%changelog
|