Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 1 | require gcc-common.inc |
| 2 | |
| 3 | # Third digit in PV should be incremented after a minor release |
| 4 | |
| 5 | PV = "5.4.0" |
| 6 | |
| 7 | #SNAP = "5-20150405" |
| 8 | |
| 9 | # BINV should be incremented to a revision after a minor gcc release |
| 10 | |
| 11 | BINV = "5.4.0" |
| 12 | |
| 13 | FILESEXTRAPATHS =. "${FILE_DIRNAME}/gcc-5.4:${FILE_DIRNAME}/gcc-5.4/backport:" |
| 14 | |
| 15 | DEPENDS =+ "mpfr gmp libmpc zlib" |
| 16 | NATIVEDEPS = "mpfr-native gmp-native libmpc-native zlib-native" |
| 17 | |
| 18 | LICENSE = "GPL-3.0-with-GCC-exception & GPLv3" |
| 19 | |
| 20 | LIC_FILES_CHKSUM = "\ |
| 21 | file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552 \ |
| 22 | file://COPYING3;md5=d32239bcb673463ab874e80d47fae504 \ |
| 23 | file://COPYING3.LIB;md5=6a6a8e020838b23406c81b19c1d46df6 \ |
| 24 | file://COPYING.LIB;md5=2d5025d4aa3495befef8f17206a5b0a1 \ |
| 25 | file://COPYING.RUNTIME;md5=fe60d87048567d4fe8c8a0ed2448bcc8 \ |
| 26 | " |
| 27 | #BASEURI = "http://www.netgull.com/gcc/snapshots/${SNAP}/gcc-${SNAP}.tar.bz2" |
| 28 | BASEURI = "${GNU_MIRROR}/gcc/gcc-${PV}/gcc-${PV}.tar.bz2" |
| 29 | |
| 30 | SRC_URI = "\ |
| 31 | ${BASEURI} \ |
| 32 | ${BACKPORTS} \ |
| 33 | file://0001-gcc-4.3.1-ARCH_FLAGS_FOR_TARGET.patch \ |
| 34 | file://0002-uclibc-conf.patch \ |
| 35 | file://0003-gcc-uclibc-locale-ctype_touplow_t.patch \ |
| 36 | file://0004-uclibc-locale.patch \ |
| 37 | file://0005-uclibc-locale-no__x.patch \ |
| 38 | file://0006-uclibc-locale-wchar_fix.patch \ |
| 39 | file://0007-uclibc-locale-update.patch \ |
| 40 | file://0008-missing-execinfo_h.patch \ |
| 41 | file://0009-c99-snprintf.patch \ |
| 42 | file://0010-gcc-poison-system-directories.patch \ |
| 43 | file://0011-gcc-poison-dir-extend.patch \ |
| 44 | file://0012-gcc-4.3.3-SYSROOT_CFLAGS_FOR_TARGET.patch \ |
| 45 | file://0013-64-bit-multilib-hack.patch \ |
| 46 | file://0014-optional-libstdc.patch \ |
| 47 | file://0015-gcc-disable-MASK_RELAX_PIC_CALLS-bit.patch \ |
| 48 | file://0016-COLLECT_GCC_OPTIONS.patch \ |
| 49 | file://0017-Use-the-defaults.h-in-B-instead-of-S-and-t-oe-in-B.patch \ |
| 50 | file://0018-fortran-cross-compile-hack.patch \ |
| 51 | file://0019-libgcc-sjlj-check.patch \ |
| 52 | file://0020-cpp-honor-sysroot.patch \ |
| 53 | file://0021-MIPS64-Default-to-N64-ABI.patch \ |
| 54 | file://0022-Define-GLIBC_DYNAMIC_LINKER-and-UCLIBC_DYNAMIC_LINKE.patch \ |
| 55 | file://0023-gcc-Fix-argument-list-too-long-error.patch \ |
| 56 | file://0024-Disable-sdt.patch \ |
| 57 | file://0025-libtool.patch \ |
| 58 | file://0026-gcc-armv4-pass-fix-v4bx-to-linker-to-support-EABI.patch \ |
| 59 | file://0027-Use-the-multilib-config-files-from-B-instead-of-usin.patch \ |
| 60 | file://0028-Avoid-using-libdir-from-.la-which-usually-points-to-.patch \ |
| 61 | file://0029-export-CPP.patch \ |
| 62 | file://0030-Enable-SPE-AltiVec-generation-on-powepc-linux-target.patch \ |
| 63 | file://0031-Disable-the-MULTILIB_OSDIRNAMES-and-other-multilib-o.patch \ |
| 64 | file://0032-Ensure-target-gcc-headers-can-be-included.patch \ |
| 65 | file://0033-gcc-4.8-won-t-build-with-disable-dependency-tracking.patch \ |
| 66 | file://0034-Don-t-search-host-directory-during-relink-if-inst_pr.patch \ |
| 67 | file://0035-Dont-link-the-plugins-with-libgomp-explicitly.patch \ |
| 68 | file://0036-Use-SYSTEMLIBS_DIR-replacement-instead-of-hardcoding.patch \ |
| 69 | file://0037-aarch64-Add-support-for-musl-ldso.patch \ |
| 70 | file://0038-fix-g-sysroot.patch \ |
| 71 | file://0039-libcc1-fix-libcc1-s-install-path-and-rpath.patch \ |
| 72 | file://0040-handle-sysroot-support-for-nativesdk-gcc.patch \ |
| 73 | file://0041-Search-target-sysroot-gcc-version-specific-dirs-with.patch \ |
| 74 | file://0042-Fix-various-_FOR_BUILD-and-related-variables.patch \ |
| 75 | file://0043-libstdc-Support-musl.patch \ |
| 76 | file://0044-Adding-mmusl-as-a-musl-libc-specifier-and-the-necess.patch \ |
| 77 | file://0045-Support-for-arm-linux-musl.patch \ |
| 78 | file://0046-Get-rid-of-ever-broken-fixincludes-on-musl.patch \ |
| 79 | file://0047-nios2-Define-MUSL_DYNAMIC_LINKER.patch \ |
| 80 | file://0048-ssp_nonshared.patch \ |
| 81 | file://0049-Disable-the-weak-reference-logic-in-gthr.h-for-os-ge.patch \ |
| 82 | file://0050-powerpc-pass-secure-plt-to-the-linker.patch \ |
| 83 | file://0051-Ignore-fdebug-prefix-map-in-producer-string-by-Danie.patch \ |
| 84 | file://0052-nios2-use-ret-with-r31.patch \ |
| 85 | file://0053-expr.c-PR-target-65358-Avoid-clobbering-partial-argu.patch \ |
| 86 | file://0054-support-ffile-prefix-map.patch \ |
| 87 | file://0055-Reuse-fdebug-prefix-map-to-replace-ffile-prefix-map.patch \ |
| 88 | file://0056-Enable-libc-provide-ssp-and-gcc_cv_target_dl_iterate.patch \ |
| 89 | file://0057-unwind-fix-for-musl.patch \ |
| 90 | file://0058-fdebug-prefix-map-support-to-remap-relative-path.patch \ |
| 91 | file://0059-libgcc-use-ldflags.patch \ |
| 92 | " |
| 93 | |
| 94 | BACKPORTS = "" |
| 95 | |
| 96 | SRC_URI[md5sum] = "4c626ac2a83ef30dfb9260e6f59c2b30" |
| 97 | SRC_URI[sha256sum] = "608df76dec2d34de6558249d8af4cbee21eceddbcb580d666f7a5a583ca3303a" |
| 98 | |
| 99 | UPSTREAM_CHECK_REGEX = "gcc-(?P<pver>5\.\d+\.\d+).tar" |
| 100 | |
| 101 | #S = "${TMPDIR}/work-shared/gcc-${PV}-${PR}/gcc-${SNAP}" |
| 102 | S = "${TMPDIR}/work-shared/gcc-${PV}-${PR}/gcc-${PV}" |
| 103 | B = "${WORKDIR}/gcc-${PV}/build.${HOST_SYS}.${TARGET_SYS}" |
| 104 | |
| 105 | # Language Overrides |
| 106 | FORTRAN = "" |
| 107 | JAVA = "" |
| 108 | |
| 109 | LTO = "--enable-lto" |
| 110 | |
| 111 | EXTRA_OECONF_BASE = "\ |
| 112 | ${LTO} \ |
| 113 | --enable-libssp \ |
| 114 | --enable-libitm \ |
| 115 | --disable-bootstrap \ |
| 116 | --disable-libmudflap \ |
| 117 | --with-system-zlib \ |
| 118 | --with-linker-hash-style=${LINKER_HASH_STYLE} \ |
| 119 | --enable-linker-build-id \ |
| 120 | --with-ppl=no \ |
| 121 | --with-cloog=no \ |
| 122 | --enable-checking=release \ |
| 123 | --enable-cheaders=c_global \ |
| 124 | --without-isl \ |
| 125 | " |
| 126 | |
| 127 | EXTRA_OECONF_INITIAL = "\ |
| 128 | --disable-libmudflap \ |
| 129 | --disable-libgomp \ |
| 130 | --disable-libitm \ |
| 131 | --disable-libquadmath \ |
| 132 | --with-system-zlib \ |
| 133 | --disable-lto \ |
| 134 | --disable-plugin \ |
| 135 | --enable-decimal-float=no \ |
| 136 | --without-isl \ |
| 137 | gcc_cv_libc_provides_ssp=yes \ |
| 138 | " |
| 139 | |
| 140 | EXTRA_OECONF_append_libc-uclibc = " --disable-decimal-float " |
| 141 | |
| 142 | EXTRA_OECONF_PATHS = "\ |
| 143 | --with-gxx-include-dir=/not/exist{target_includedir}/c++/${BINV} \ |
| 144 | --with-sysroot=/not/exist \ |
| 145 | --with-build-sysroot=${STAGING_DIR_TARGET} \ |
| 146 | " |