gcc-15.1.inc 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. require gcc-common.inc
  2. # Third digit in PV should be incremented after a minor release
  3. PV = "15.1.0"
  4. # BINV should be incremented to a revision after a minor gcc release
  5. BINV = "15.1.0"
  6. FILESEXTRAPATHS =. "${FILE_DIRNAME}/gcc:${FILE_DIRNAME}/gcc/backport:"
  7. TOOLCHAIN = "gcc"
  8. DEPENDS =+ "mpfr gmp libmpc zlib zstd flex-native"
  9. NATIVEDEPS = "mpfr-native gmp-native libmpc-native zlib-native flex-native zstd-native"
  10. LICENSE = "GPL-3.0-with-GCC-exception & GPL-3.0-only"
  11. LIC_FILES_CHKSUM = "\
  12. file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552 \
  13. file://COPYING3;md5=d32239bcb673463ab874e80d47fae504 \
  14. file://COPYING3.LIB;md5=6a6a8e020838b23406c81b19c1d46df6 \
  15. file://COPYING.LIB;md5=2d5025d4aa3495befef8f17206a5b0a1 \
  16. file://COPYING.RUNTIME;md5=fe60d87048567d4fe8c8a0ed2448bcc8 \
  17. "
  18. # snapshot from git
  19. #RELEASE ?= "9b6bf076c11cba0f9ccdace63e8b4044b1a858ea"
  20. #BASEURI ?= "https://git.linaro.org/toolchain/gcc.git/snapshot/gcc-${RELEASE}.tar.gz"
  21. #SOURCEDIR = "gcc-${RELEASE}"
  22. #BASEURI ?= "https://repo.or.cz/official-gcc.git/snapshot/${RELEASE}.tar.gz;downloadfilename=gcc-${PV}-${RELEASE}.tar.gz"
  23. #SOURCEDIR ?= "official-gcc-${@'${RELEASE}'[0:7]}"
  24. #SRC_URI[sha256sum] = "41bf7be5dc029112a9df625266e7de030ffc36ff3638f270b180ae8c91fe6449"
  25. # from snapshot
  26. #RELEASE ?= "15-20250420"
  27. #RELEASE ?= "15.1.0-RC-20250418"
  28. #BASEURI ?= "https://gcc.gnu.org/pub/gcc/snapshots/${RELEASE}/gcc-${RELEASE}.tar.xz"
  29. #SOURCEDIR ?= "gcc-${RELEASE}"
  30. #SRC_URI[sha256sum] = "fe18624317c6c662977eea8b5a506ec6c132fc11c7a8d53e2f6d21b139b0af3c"
  31. # official release
  32. RELEASE ?= "${PV}"
  33. BASEURI ?= "${GNU_MIRROR}/gcc/gcc-${PV}/gcc-${PV}.tar.xz"
  34. SOURCEDIR ?= "gcc-${PV}"
  35. SRC_URI[sha256sum] = "e2b09ec21660f01fecffb715e0120265216943f038d0e48a9868713e54f06cea"
  36. SRC_URI = "${BASEURI} \
  37. file://0001-gcc-4.3.1-ARCH_FLAGS_FOR_TARGET.patch \
  38. file://0002-gcc-poison-system-directories.patch \
  39. file://0003-64-bit-multilib-hack.patch \
  40. file://0004-Pass-CXXFLAGS_FOR_BUILD-in-a-couple-of-places-to-avo.patch \
  41. file://0005-Use-the-defaults.h-in-B-instead-of-S-and-t-oe-in-B.patch \
  42. file://0006-cpp-honor-sysroot.patch \
  43. file://0007-Define-GLIBC_DYNAMIC_LINKER-and-UCLIBC_DYNAMIC_LINKE.patch \
  44. file://0008-libtool.patch \
  45. file://0009-gcc-armv4-pass-fix-v4bx-to-linker-to-support-EABI.patch \
  46. file://0010-Use-the-multilib-config-files-from-B-instead-of-usin.patch \
  47. file://0011-aarch64-Fix-include-paths-when-S-B.patch \
  48. file://0012-Avoid-using-libdir-from-.la-which-usually-points-to-.patch \
  49. file://0013-Ensure-target-gcc-headers-can-be-included.patch \
  50. file://0014-Don-t-search-host-directory-during-relink-if-inst_pr.patch \
  51. file://0015-libcc1-fix-libcc1-s-install-path-and-rpath.patch \
  52. file://0016-handle-sysroot-support-for-nativesdk-gcc.patch \
  53. file://0017-Search-target-sysroot-gcc-version-specific-dirs-with.patch \
  54. file://0018-Add-ssp_nonshared-to-link-commandline-for-musl-targe.patch \
  55. file://0019-Re-introduce-spe-commandline-options.patch \
  56. file://0020-libgcc_s-Use-alias-for-__cpu_indicator_init-instead-.patch \
  57. file://0021-gentypes-genmodes-Do-not-use-__LINE__-for-maintainin.patch \
  58. file://0022-libatomic-Do-not-enforce-march-on-aarch64.patch \
  59. file://0023-Fix-install-path-of-linux64.h.patch \
  60. file://0024-Avoid-hardcoded-build-paths-into-ppc-libgcc.patch \
  61. file://0025-gcc-testsuite-tweaks-for-mips-OE.patch \
  62. file://0026-arm-fully-validate-mem_noofs_operand-PR120351.patch \
  63. "
  64. S = "${TMPDIR}/work-shared/gcc-${PV}-${PR}/${SOURCEDIR}"
  65. B = "${WORKDIR}/gcc-${PV}/build.${HOST_SYS}.${TARGET_SYS}"
  66. # Language Overrides
  67. FORTRAN = ""
  68. SSP ?= "--disable-libssp"
  69. SSP:mingw32 = "--enable-libssp"
  70. EXTRA_OECONF_BASE = "\
  71. ${SSP} \
  72. --enable-libitm \
  73. --enable-lto \
  74. --disable-bootstrap \
  75. --with-system-zlib \
  76. ${@'--with-linker-hash-style=${LINKER_HASH_STYLE}' if '${LINKER_HASH_STYLE}' else ''} \
  77. --enable-linker-build-id \
  78. --with-ppl=no \
  79. --with-cloog=no \
  80. --enable-checking=release \
  81. --enable-cheaders=c_global \
  82. --without-isl \
  83. "
  84. EXTRA_OECONF_INITIAL = "\
  85. --disable-libgomp \
  86. --disable-libitm \
  87. --disable-libquadmath \
  88. --with-system-zlib \
  89. --disable-lto \
  90. --disable-plugin \
  91. --enable-linker-build-id \
  92. --enable-decimal-float=no \
  93. --without-isl \
  94. --disable-libssp \
  95. "
  96. CVE_STATUS[CVE-2021-37322] = "cpe-incorrect: Is a binutils 2.26 issue, not gcc"
  97. CVE_STATUS[CVE-2023-4039] = "fixed-version: Fixed from version 14.0+"