]>
Commit | Line | Data |
---|---|---|
166a6c21 | 1 | ############################################################################### |
802ea3af MT |
2 | # IPFire.org - An Open Source Firewall Solution # |
3 | # Copyright (C) - IPFire Development Team <info@ipfire.org> # | |
166a6c21 MT |
4 | ############################################################################### |
5 | ||
b57a0ea8 MT |
6 | # Configure build to compile with graphite |
7 | build_graphite = 1 | |
166a6c21 | 8 | |
802ea3af | 9 | name = gcc |
4f2a9491 | 10 | version = 6.2.0 |
a3b04653 | 11 | release = 3 |
f0d77f5d | 12 | |
802ea3af MT |
13 | maintainer = Michael Tremer <michael.tremer@ipfire.org> |
14 | groups = Development/Compilers | |
15 | url = http://gcc.gnu.org/ | |
16 | license = GPLv3+ and GPLv2+ with exceptions | |
17 | summary = Various compilers (C, C++, Objective-C, Java, ...). | |
166a6c21 | 18 | |
802ea3af | 19 | description |
166a6c21 MT |
20 | The gcc package contains the GNU Compiler Collection. \ |
21 | You'll need this package in order to compile C code. | |
802ea3af MT |
22 | end |
23 | ||
24 | # This is the at least required version of binutils. | |
513f8ca4 | 25 | binutils_version = 2.24 |
802ea3af | 26 | |
de58ea22 | 27 | source_dl = http://ftp.gnu.org/gnu/gcc/%{thisapp}/ |
513f8ca4 | 28 | source_dl += ftp://gcc.gnu.org/pub/gcc/infrastructure/ |
802ea3af MT |
29 | sources = %{thisapp}.tar.gz |
30 | ||
802ea3af MT |
31 | build |
32 | requires | |
33 | autogen | |
513f8ca4 | 34 | binutils >= %{binutils_version} |
802ea3af MT |
35 | dejagnu |
36 | elfutils-devel | |
37 | expect | |
7e981e59 | 38 | filesystem >= 002 |
802ea3af | 39 | flex |
e0e5b1d5 | 40 | glibc-devel >= 2.16 |
802ea3af MT |
41 | gmp-devel |
42 | libffi-devel | |
b57a0ea8 | 43 | libmpc-devel >= 0.8.1 |
802ea3af | 44 | mpfr-devel |
4de56d3e | 45 | perl |
802ea3af MT |
46 | texinfo |
47 | zlib-devel | |
48 | end | |
49 | ||
b57a0ea8 MT |
50 | # If graphite support is enabled, we require the devel packages for build. |
51 | if "%{build_graphite}" == "1" | |
52 | requires += isl-devel >= 0.14 | |
802ea3af MT |
53 | end |
54 | ||
56c0b63c MT |
55 | # Build libquadmath (only on x86). |
56 | build_libquadmath = 0 | |
57 | ||
513f8ca4 MT |
58 | # Build liblsan (only on x86_64). |
59 | build_liblsan = 0 | |
60 | ||
00c77389 MT |
61 | # Build libtasn (only on x86_64). |
62 | build_libtsan = 0 | |
63 | ||
b57a0ea8 MT |
64 | # Build libubsan |
65 | build_libubsan = 0 | |
66 | ||
513f8ca4 MT |
67 | # Build libcilkrts (only x86) |
68 | build_libcilkrts = 0 | |
69 | ||
802ea3af MT |
70 | # A couple of configure arguments depending on the architecture and |
71 | # configuration. | |
72 | configure_options = | |
73 | ||
7bc68234 MT |
74 | make_bootstrap = profiledbootstrap |
75 | ||
802ea3af MT |
76 | if "%{DISTRO_ARCH}" == "x86_64" |
77 | configure_options = --disable-multilib | |
56c0b63c MT |
78 | |
79 | build_libquadmath = 1 | |
513f8ca4 | 80 | build_liblsan = 1 |
00c77389 | 81 | build_libtsan = 1 |
b57a0ea8 | 82 | build_libubsan = 1 |
513f8ca4 | 83 | build_libcilkrts = 1 |
802ea3af MT |
84 | end |
85 | ||
86 | if "%{DISTRO_ARCH}" == "i686" | |
87 | configure_options = --with-arch=%{DISTRO_ARCH} --with-tune=generic | |
56c0b63c MT |
88 | |
89 | build_libquadmath = 1 | |
b57a0ea8 | 90 | build_libubsan = 1 |
513f8ca4 | 91 | build_libcilkrts = 1 |
802ea3af MT |
92 | end |
93 | ||
b57a0ea8 MT |
94 | if "%{DISTRO_ARCH}" == "aarch64" |
95 | build_libubsan = 1 | |
66e276de MT |
96 | end |
97 | ||
1a7bf898 | 98 | if "%{DISTRO_ARCH}" == "armv7hl" |
dc788393 MT |
99 | make_bootstrap = bootstrap |
100 | ||
56c0b63c MT |
101 | configure_options += --disable-sjlj-exceptions |
102 | ||
103 | configure_options += \ | |
56c0b63c MT |
104 | --with-tune=cortex-a8 \ |
105 | --with-arch=armv7-a \ | |
106 | --with-float=hard \ | |
107 | --with-fpu=vfpv3-d16 \ | |
108 | --with-abi=aapcs-linux | |
b57a0ea8 MT |
109 | |
110 | build_libubsan = 1 | |
56c0b63c MT |
111 | end |
112 | ||
b57a0ea8 MT |
113 | if "%{DISTRO_ARCH}" == "armv5tel" |
114 | make_bootstrap = bootstrap | |
115 | ||
116 | configure_options += --disable-sjlj-exceptions | |
117 | configure_options += --with-float=soft | |
118 | ||
119 | build_libubsan = 1 | |
120 | end | |
121 | ||
122 | if "%{build_graphite}" == "1" | |
513f8ca4 | 123 | configure_options += \ |
b57a0ea8 | 124 | --with-isl |
802ea3af MT |
125 | end |
126 | ||
802ea3af MT |
127 | prepare_cmds |
128 | mkdir -v %{DIR_SRC}/gcc-build | |
129 | ||
130 | # Remove unneeded features that will save some compile time | |
131 | rm -rf lib{gfortran,java,objc} gcc/{fortran,java,objc,objcp} | |
132 | ||
133 | # Apply a sed substitution that will suppress the installation of | |
134 | # libiberty.a. The version of libiberty.a provided by Binutils will be used | |
135 | # instead: | |
136 | sed -i 's/install_to_$(INSTALL_DEST) //' libiberty/Makefile.in | |
137 | ||
138 | # Branding gcc | |
139 | echo "%{DISTRO_NAME} %{version}-%{release}" > gcc/DEV-PHASE | |
140 | ||
141 | # Libgomp uses -Werror regardless of --disable-werror, and this will cause a | |
142 | # build failure when -D_FORTIFY_SOURCE=2 causes build time warnings: | |
143 | sed -e "s/-Werror//" -i libgomp/configure | |
144 | ||
145 | # The fixincludes script is known to occasionally erroneously attempt to | |
146 | # "fix" the system headers installed so far. As the headers up to this point | |
147 | # are known to not require fixing, issue the following command to prevent | |
148 | # the fixincludes script from running: | |
149 | sed -i 's@\./fixinc\.sh@-c true@' gcc/Makefile.in | |
150 | ||
151 | sed -i gcc/Makefile.in \ | |
152 | -e "s/-fno-exceptions/& -fno-asynchronous-unwind-tables/" | |
153 | ||
00c77389 | 154 | #./contrib/gcc_update --touch |
802ea3af MT |
155 | end |
156 | ||
b57a0ea8 MT |
157 | export CC=gcc |
158 | export CXX=g++ | |
159 | ||
802ea3af MT |
160 | build |
161 | cd %{DIR_SRC}/gcc-build | |
162 | ||
163 | # Modify CFLAGS | |
802ea3af MT |
164 | CFLAGS="%{CFLAGS}" |
165 | CFLAGS=$(echo ${CFLAGS} | sed -e 's/\(-Wp,\)\?-D_FORTIFY_SOURCE=[12]//g') | |
b57a0ea8 | 166 | CFLAGS=$(echo ${CFLAGS} | sed -e 's/-Werror=format-security//g') |
802ea3af | 167 | CFLAGS=$(echo ${CFLAGS} | sed -e 's/-m64//g;s/-m32//g;s/-m31//g') |
513f8ca4 | 168 | CFLAGS=$(echo ${CFLAGS} | sed -e 's/-mfpmath=sse/-mfpmath=sse -msse2/g') |
56c0b63c MT |
169 | CFLAGS=$(echo ${CFLAGS} | sed -e 's/-march=i.86//g') |
170 | CFLAGS=$(echo ${CFLAGS} | sed -e 's/ -pipe / /g') | |
802ea3af MT |
171 | CFLAGS=$(echo "${CFLAGS}" | sed -e 's/[[:blank:]]\+/ /g') |
172 | CXXFLAGS=$(echo ${CFLAGS} | sed -e 's/ -Wall//g') | |
513f8ca4 | 173 | CXXFLAGS=$(echo ${CXXFLAGS} | sed -e 's/ -fexceptions / /g') |
b57a0ea8 | 174 | #CXXFLAGS=$(echo ${CXXFLAGS} | sed -e 's/ -Werror=format-security / -Wformat -Werror=format-security /g') |
513f8ca4 MT |
175 | |
176 | case "${CFLAGS}" in | |
177 | *-fasynchronous-unwind-tables*) | |
178 | sed -i -e "s/-fno-exceptions /-fno-exceptions -fno-asynchronous-unwind-tables/" \ | |
179 | ../%{thisapp}/Makefile.in | |
180 | ;; | |
181 | esac | |
802ea3af MT |
182 | |
183 | CFLAGS="${CFLAGS}" \ | |
184 | CXXFLAGS="${CXXFLAGS}" \ | |
185 | XCFLAGS="${CFLAGS}" \ | |
186 | TCFLAGS="${CFLAGS}" \ | |
187 | ../%{thisapp}/configure \ | |
188 | --build=%{DISTRO_BUILDTARGET} \ | |
166a6c21 | 189 | --prefix=/usr \ |
c30b5fa5 MT |
190 | --libdir=%{libdir} \ |
191 | --libexecdir=%{libdir} \ | |
00c77389 | 192 | --mandir=%{mandir} \ |
ec463524 | 193 | --with-boot-ldflags="%{LDFLAGS}" \ |
b8b873e7 | 194 | --enable-esp \ |
166a6c21 MT |
195 | --enable-shared \ |
196 | --enable-threads=posix \ | |
197 | --enable-__cxa_atexit \ | |
198 | --enable-clocale=gnu \ | |
f23b0b6e MT |
199 | --enable-languages=c,c++,lto \ |
200 | --enable-bootstrap \ | |
201 | --enable-checking=release \ | |
ae73e818 | 202 | --enable-default-pie \ |
166a6c21 MT |
203 | --disable-werror \ |
204 | --disable-libssp \ | |
f23b0b6e MT |
205 | --with-system-zlib \ |
206 | --with-bugurl=http://bugtracker.ipfire.org \ | |
b415c6aa MT |
207 | --disable-libunwind-exceptions \ |
208 | --enable-gnu-unique-object \ | |
209 | --enable-linker-build-id \ | |
4de56d3e | 210 | --with-linker-hash-style=gnu \ |
00c77389 MT |
211 | --enable-plugin \ |
212 | --enable-initfini-array \ | |
513f8ca4 | 213 | --disable-libgcj \ |
b57a0ea8 | 214 | --enable-gnu-indirect-function \ |
802ea3af MT |
215 | %{configure_options} |
216 | ||
513f8ca4 MT |
217 | # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58012 |
218 | # XXX disabled flags: --disable-static | |
219 | ||
802ea3af | 220 | # GCC does not support a parallel build. |
7bc68234 | 221 | make %{make_bootstrap} BOOT_CFLAGS="${CFLAGS}" |
4de56d3e MT |
222 | |
223 | # Generate man pages. | |
224 | perl -pi -e 's/head3/head2/' ../contrib/texi2pod.pl | |
225 | for i in %{DIR_APP}/gcc/doc/*.texi; do | |
226 | cp -a $i $i.orig; sed 's/ftable/table/' $i.orig > $i | |
227 | done | |
228 | make -C gcc generated-manpages | |
229 | for i in %{DIR_APP}/gcc/doc/*.texi; do mv -f $i.orig $i; done | |
802ea3af MT |
230 | end |
231 | ||
232 | #test | |
513f8ca4 | 233 | # cd %{DIR_SRC}/gcc-build && make -k check || true |
802ea3af MT |
234 | # cd %{DIR_APP} && ./contrib/test_summary |
235 | #end | |
236 | ||
237 | install | |
238 | cd %{DIR_SRC}/gcc-build | |
239 | make install DESTDIR=%{BUILDROOT} | |
240 | ||
56c0b63c | 241 | # Check if the installation path exists. |
c30b5fa5 | 242 | FULLPATH="%{BUILDROOT}%{libdir}/gcc/%{DISTRO_BUILDTARGET}/%{version}" |
56c0b63c MT |
243 | [ -d "${FULLPATH}" ] || exit 1 |
244 | ||
7e981e59 MT |
245 | mkdir -pv %{BUILDROOT}%{prefix}/lib |
246 | ln -sfv ../bin/cpp %{BUILDROOT}%{prefix}/lib/cpp | |
802ea3af MT |
247 | ln -sfv gcc %{BUILDROOT}/usr/bin/cc |
248 | ||
0302fa63 | 249 | # Fix libgcc_s symlinks. |
c30b5fa5 | 250 | rm -f ${FULLPATH}/libgcc_s.so %{BUILDROOT}%{libdir}/libgcc_s.so |
13319128 MT |
251 | case "%{DISTRO_ARCH}" in |
252 | arm*) | |
13319128 MT |
253 | cat <<EOF >${FULLPATH}/libgcc_s.so |
254 | /* GNU ld script | |
255 | Use the shared library, but some functions are only in | |
256 | the static library, so try that secondarily. */ | |
257 | OUTPUT_FORMAT(elf32-littlearm) | |
0302fa63 | 258 | GROUP ( %{libdir}/libgcc_s.so.1 libgcc.a ) |
13319128 MT |
259 | EOF |
260 | ;; | |
261 | *) | |
62f274aa | 262 | ln -svf ../../../../..%{libdir}/libgcc_s.so.1 ${FULLPATH}/libgcc_s.so |
13319128 MT |
263 | ;; |
264 | esac | |
62f274aa | 265 | chmod 755 %{BUILDROOT}%{libdir}/libgcc_s.so.1 |
802ea3af MT |
266 | |
267 | # Remove some GNU debugger stuff. | |
c30b5fa5 | 268 | rm -vf %{BUILDROOT}%{libdir}/lib*.py |
56c0b63c | 269 | |
0f737982 MT |
270 | # Install missing header file(s) on ARM. |
271 | case "%{DISTRO_ARCH}" in | |
272 | arm*) | |
273 | cp -vf %{DIR_APP}/gcc/config/vxworks-dummy.h \ | |
274 | ${FULLPATH}/plugin/include/config/ | |
275 | cp -vf %{DIR_APP}/gcc/config/arm/arm-cores.def \ | |
276 | ${FULLPATH}/plugin/include/config/arm/ | |
277 | ;; | |
278 | esac | |
279 | ||
56c0b63c | 280 | # libgomp |
c30b5fa5 | 281 | mv -vf %{BUILDROOT}%{libdir}/libgomp.spec ${FULLPATH}/ |
56c0b63c | 282 | ln -svf ../../../libgomp.so.1.0.0 ${FULLPATH}/libgomp.so |
c30b5fa5 | 283 | chmod 755 %{BUILDROOT}%{libdir}/libgomp.so.1.* |
56c0b63c MT |
284 | |
285 | # libstdc++ | |
ae73e818 | 286 | ln -svf ../../../libstdc++.so.6.0.22 ${FULLPATH}/libstdc++.so |
b57a0ea8 | 287 | mv -vf %{BUILDROOT}%{libdir}/lib{std,sup}c++.a ${FULLPATH} |
56c0b63c MT |
288 | |
289 | # libquadmath | |
290 | if [ "%{build_libquadmath}" = "1" ]; then | |
9d2ad5e3 | 291 | ln -svf ../../../libquadmath.so.0.0.0 ${FULLPATH}/libquadmath.so |
c30b5fa5 | 292 | chmod 755 %{BUILDROOT}%{libdir}/libquadmath.so.0.* |
56c0b63c | 293 | fi |
4de56d3e MT |
294 | |
295 | # libitm | |
296 | mv -vf %{BUILDROOT}%{libdir}/libitm.spec ${FULLPATH}/ | |
297 | ln -svf ../../../libitm.so.1.0.0 ${FULLPATH}/libitm.so | |
298 | chmod 755 %{BUILDROOT}%{libdir}/libitm.so.1.* | |
513f8ca4 MT |
299 | |
300 | # liblsan | |
301 | if [ "%{build_liblsan}" = "1" ]; then | |
302 | ln -svf ../../../liblsan.so.0.0.0 ${FULLPATH}/liblsan.so | |
303 | chmod 755 %{BUILDROOT}%{libdir}/liblsan.so.* | |
304 | fi | |
305 | ||
306 | # libtsan | |
307 | if [ "%{build_libtsan}" = "1" ]; then | |
308 | ln -svf ../../../libtsan.so.0.0.0 ${FULLPATH}/libtsan.so | |
309 | chmod 755 %{BUILDROOT}%{libdir}/libtsan.so.* | |
310 | fi | |
311 | ||
312 | # libubsan | |
b57a0ea8 MT |
313 | if [ "%{build_libubsan}" = "1" ]; then |
314 | ln -svf ../../../libubsan.so.0.0.0 ${FULLPATH}/libubsan.so | |
315 | chmod 755 %{BUILDROOT}%{libdir}/libubsan.so.* | |
316 | fi | |
513f8ca4 MT |
317 | |
318 | # libcilkrts | |
319 | if [ "%{build_libcilkrts}" = "1" ]; then | |
320 | ln -svf ../../../libcilkrts.so.5.0.0 ${FULLPATH}/libcilkrts.so | |
321 | chmod 755 %{BUILDROOT}%{libdir}/libcilkrts.so.5.* | |
322 | fi | |
802ea3af | 323 | end |
876f9cff MT |
324 | |
325 | keep_libraries | |
c30b5fa5 MT |
326 | %{libdir}/gcc/%{DISTRO_BUILDTARGET}/%{version}/libgcc.a |
327 | %{libdir}/gcc/%{DISTRO_BUILDTARGET}/%{version}/libgcc_eh.a | |
b57a0ea8 MT |
328 | %{libdir}/gcc/%{DISTRO_BUILDTARGET}/%{version}/libstdc++.a |
329 | %{libdir}/gcc/%{DISTRO_BUILDTARGET}/%{version}/libsupc++.a | |
876f9cff | 330 | end |
802ea3af MT |
331 | end |
332 | ||
333 | packages | |
334 | package %{name} | |
335 | groups += Build | |
336 | ||
337 | requires | |
513f8ca4 | 338 | binutils >= %{binutils_version} |
7e981e59 | 339 | filesystem >= 002 |
e0e5b1d5 | 340 | glibc >= 2.16 |
802ea3af | 341 | glibc-devel |
7112214f | 342 | gmp-devel |
0302fa63 MT |
343 | cpp = %{thisver} |
344 | libgcc = %{thisver} | |
345 | libgomp = %{thisver} | |
802ea3af MT |
346 | end |
347 | ||
9d2ad5e3 | 348 | # We do not ship libgcc-devel anymore. |
0302fa63 MT |
349 | provides += libgcc-devel = %{thisver} |
350 | obsoletes += libgcc-devel < %{thisver} | |
802ea3af MT |
351 | end |
352 | ||
802ea3af | 353 | package %{name}-c++ |
56c0b63c MT |
354 | summary = C++ support for GCC. |
355 | description | |
356 | This package adds C++ support to the GNU Compiler Collection. | |
357 | It includes support for most of the current C++ specification, | |
358 | including templates and exception handling. | |
359 | end | |
360 | ||
361 | requires | |
0302fa63 MT |
362 | gcc = %{thisver} |
363 | libstdc++ = %{thisver} | |
364 | libstdc++-devel = %{thisver} | |
56c0b63c | 365 | end |
802ea3af MT |
366 | |
367 | files | |
368 | /usr/bin/*++ | |
c30b5fa5 | 369 | %{libdir}/gcc/*/*/cc1plus |
802ea3af MT |
370 | /usr/share/man/man*/*++* |
371 | end | |
372 | end | |
373 | ||
56c0b63c MT |
374 | package cpp |
375 | summary = The C Preprocessor. | |
376 | description | |
377 | Cpp is the GNU C-Compatible Compiler Preprocessor. | |
378 | Cpp is a macro processor which is used automatically | |
379 | by the C compiler to transform your program before actual | |
380 | compilation. It is called a macro processor because it allows | |
381 | you to define macros, abbreviations for longer | |
382 | constructs. | |
383 | ||
384 | The C preprocessor provides four separate functionalities: the | |
385 | inclusion of header files (files of declarations that can be | |
386 | substituted into your program); macro expansion (you can define macros, | |
387 | and the C preprocessor will replace the macros with their definitions | |
388 | throughout the program); conditional compilation (using special | |
389 | preprocessing directives, you can include or exclude parts of the | |
390 | program according to various conditions); and line control (if you use | |
391 | a program to combine or rearrange source files into an intermediate | |
392 | file which is then compiled, you can use line control to inform the | |
393 | compiler about where each source line originated). | |
394 | ||
395 | You should install this package if you are a C programmer and you use | |
396 | macros. | |
397 | end | |
398 | group = Development/Languages | |
399 | ||
802ea3af | 400 | files |
7e981e59 MT |
401 | %{prefix}/lib/cpp |
402 | %{bindir}/cpp | |
403 | %{mandir}/man1/cpp.1* | |
c30b5fa5 | 404 | %{libdir}/gcc/%{DISTRO_BUILDTARGET}/%{version}/cc1 |
802ea3af | 405 | end |
7e981e59 MT |
406 | |
407 | provides = /lib/cpp | |
62f274aa | 408 | requires = gcc-c++ = %{thisver} |
802ea3af MT |
409 | end |
410 | ||
56c0b63c MT |
411 | package libgcc |
412 | summary = GCC shared support library. | |
413 | description | |
414 | This package contains GCC shared support library which is needed | |
415 | e.g. for exception handling support. | |
416 | end | |
802ea3af MT |
417 | |
418 | files | |
0302fa63 | 419 | %{libdir}/libgcc*.so.* |
802ea3af | 420 | end |
513f8ca4 MT |
421 | |
422 | obsoletes | |
423 | libmudflap | |
424 | libmudflap-devel | |
425 | end | |
802ea3af MT |
426 | end |
427 | ||
428 | package libstdc++ | |
56c0b63c MT |
429 | summary = GNU Standard C++ Library. |
430 | description | |
431 | The libstdc++ package contains a rewritten standard compliant GCC Standard | |
432 | C++ Library. | |
433 | end | |
434 | ||
802ea3af | 435 | files |
c30b5fa5 | 436 | %{libdir}/libstdc++*.so.* |
802ea3af MT |
437 | end |
438 | end | |
439 | ||
440 | package libstdc++-devel | |
56c0b63c MT |
441 | summary = Header files and libraries for C++ development. |
442 | description | |
443 | This is the GNU implementation of the standard C++ libraries. This | |
444 | package includes the header files and libraries needed for C++ | |
445 | development. This includes rewritten implementation of STL. | |
446 | end | |
447 | ||
448 | requires | |
0302fa63 | 449 | libstdc++ = %{thisver} |
56c0b63c MT |
450 | end |
451 | ||
802ea3af | 452 | files |
c30b5fa5 MT |
453 | %{includedir}/c++ |
454 | %{libdir}/libstdc++*.so | |
802ea3af MT |
455 | end |
456 | end | |
457 | ||
b57a0ea8 MT |
458 | package libstdc++-static |
459 | summary = Static libraries for the GNU standard C++ library | |
460 | description = %{summary} | |
461 | ||
462 | requires | |
463 | libstdc++-devel = %{thisver} | |
464 | end | |
465 | ||
466 | files | |
467 | %{libdir}/gcc/%{DISTRO_BUILDTARGET}/%{version}/libstdc++.a | |
468 | %{libdir}/gcc/%{DISTRO_BUILDTARGET}/%{version}/libsupc++.a | |
469 | end | |
470 | end | |
471 | ||
802ea3af | 472 | package libgomp |
56c0b63c MT |
473 | summary = GCC OpenMP v3.0 shared support library. |
474 | description | |
475 | This package contains GCC shared support library which is needed | |
476 | for OpenMP v3.0 support. | |
802ea3af | 477 | end |
802ea3af | 478 | |
802ea3af | 479 | files |
c30b5fa5 | 480 | %{libdir}/libgomp*.so.* |
802ea3af MT |
481 | end |
482 | end | |
483 | ||
56c0b63c MT |
484 | if "%{build_libquadmath}" == "1" |
485 | package libquadmath | |
486 | summary = GCC __float128 shared support library. | |
487 | description | |
488 | This package contains GCC shared support library which is needed | |
489 | for __float128 math support and for Fortran REAL*16 support. | |
490 | end | |
491 | ||
492 | files | |
c30b5fa5 | 493 | %{libdir}/libquadmath*.so.* |
56c0b63c MT |
494 | end |
495 | end | |
496 | ||
497 | package libquadmath-devel | |
498 | summary = Development files for GCC __float128 support. | |
499 | description | |
500 | This package contains headers for building Fortran programs using | |
501 | REAL*16 and programs using __float128 math. | |
502 | end | |
503 | ||
504 | requires | |
0302fa63 MT |
505 | gcc = %{thisver} |
506 | libquadmath = %{thisver} | |
56c0b63c MT |
507 | end |
508 | ||
509 | files | |
2a3a31bb | 510 | %{libdir}/libquadmath.so |
c30b5fa5 MT |
511 | %{libdir}/gcc/%{DISTRO_BUILDTARGET}/%{version}/include/quadmath.h |
512 | %{libdir}/gcc/%{DISTRO_BUILDTARGET}/%{version}/include/quadmath_weak.h | |
513 | %{libdir}/gcc/%{DISTRO_BUILDTARGET}/%{version}/libquadmath.so | |
56c0b63c | 514 | end |
802ea3af MT |
515 | end |
516 | end | |
517 | ||
4de56d3e MT |
518 | package libitm |
519 | summary = The GNU Transactional Memory library. | |
520 | description | |
521 | This package contains the GNU Transactional Memory library | |
522 | which is a GCC transactional memory support runtime library. | |
523 | end | |
524 | ||
525 | files | |
526 | %{libdir}/libitm.so.1* | |
527 | end | |
528 | end | |
529 | ||
530 | package libitm-devel | |
531 | summary = The GNU Transactional Memory support. | |
532 | description | |
533 | This package contains headers and support files for the | |
534 | GNU Transactional Memory library. | |
535 | end | |
536 | ||
537 | requires | |
538 | gcc = %{thisver} | |
539 | libitm = %{thisver} | |
540 | end | |
541 | ||
542 | files | |
2a3a31bb | 543 | %{libdir}/libitm.so |
4de56d3e MT |
544 | %{libdir}/gcc/%{DISTRO_BUILDTARGET}/%{version}/include/itm.h |
545 | %{libdir}/gcc/%{DISTRO_BUILDTARGET}/%{version}/include/itm_weak.h | |
546 | %{libdir}/gcc/%{DISTRO_BUILDTARGET}/%{version}/libitm.so | |
547 | end | |
548 | end | |
549 | ||
00c77389 MT |
550 | package libatomic |
551 | summary = The GNU Atomic library | |
552 | description | |
553 | This package contains the GNU Atomic library which is a | |
554 | GCC support runtime library for atomisc operations not | |
555 | supported by hardware. | |
556 | end | |
557 | ||
558 | files | |
559 | %{libdir}/libatomic.so.1* | |
560 | end | |
561 | end | |
562 | ||
563 | package libasan | |
564 | summary = The Address Sanitizer runtime library | |
565 | description | |
566 | This package contains the Address Sanitizer library | |
567 | which is used for -fsanitize=address instrumented programs. | |
568 | end | |
569 | ||
570 | files | |
b57a0ea8 | 571 | %{libdir}/libasan.so.2* |
00c77389 MT |
572 | end |
573 | end | |
574 | ||
575 | if "%{build_libtsan}" == "1" | |
576 | package libtsan | |
577 | summary = The Thread Sanitizer runtime library | |
578 | description | |
579 | This package contains the Thread Sanitizer library | |
580 | which is used for -fsanitize=thread instrumented programs. | |
581 | end | |
582 | ||
583 | files | |
584 | %{libdir}/libtsan.so.0* | |
585 | end | |
586 | end | |
587 | end | |
588 | ||
b57a0ea8 MT |
589 | if "%{build_libubsan}" == "1" |
590 | package libubsan | |
591 | summary = The Undefined Behavior Sanitizer runtime library | |
592 | description | |
593 | This package contains the Undefined Behavior Sanitizer library | |
594 | which is used for -fsanitize=undefined instrumented programs. | |
595 | end | |
513f8ca4 | 596 | |
b57a0ea8 MT |
597 | files |
598 | %{libdir}/libubsan.so.0* | |
599 | end | |
513f8ca4 MT |
600 | end |
601 | end | |
602 | ||
603 | if "%{build_liblsan}" == "1" | |
604 | package liblsan | |
605 | summary = The Leak Sanitizer runtime library | |
606 | description | |
607 | This package contains the Leak Sanitizer library | |
608 | which is used for -fsanitize=leak instrumented programs. | |
609 | end | |
610 | ||
611 | files | |
612 | %{libdir}/liblsan.so.0* | |
613 | end | |
614 | end | |
615 | end | |
616 | ||
617 | if "%{build_libcilkrts}" == "1" | |
618 | package libcilkrts | |
619 | summary = The Cilk+ runtime library | |
620 | description | |
621 | This package contains the Cilk+ runtime library. | |
622 | end | |
623 | ||
624 | files | |
625 | %{libdir}/libcilkrts.so.5* | |
626 | end | |
627 | end | |
628 | end | |
629 | ||
56c0b63c MT |
630 | package gcc-plugin-devel |
631 | summary = Support for compiling GCC plugins. | |
632 | description | |
633 | This package contains header files and other support files | |
634 | for compiling GCC plugins. The GCC plugin ABI is currently | |
635 | not stable, so plugins must be rebuilt any time GCC is updated. | |
636 | end | |
637 | ||
638 | requires | |
0302fa63 MT |
639 | gcc = %{thisver} |
640 | gmp-devel >= 4.1.2-8 | |
641 | mpfr-devel >= 2.2.1 | |
642 | libmpc-devel >= 0.8.1 | |
56c0b63c MT |
643 | end |
644 | ||
802ea3af | 645 | files |
c30b5fa5 | 646 | %{libdir}/gcc/%{DISTRO_BUILDTARGET}/%{version}/plugin |
802ea3af MT |
647 | end |
648 | end | |
1f9bc2f0 MT |
649 | |
650 | package %{name}-debuginfo | |
651 | template DEBUGINFO | |
652 | end | |
802ea3af | 653 | end |