Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | require gcc-common.inc |
| 2 | |
| 3 | # Third digit in PV should be incremented after a minor release |
| 4 | |
| 5 | PV = "4.9.3" |
| 6 | |
| 7 | # BINV should be incremented to a revision after a minor gcc release |
| 8 | |
| 9 | BINV = "4.9.3" |
| 10 | |
| 11 | FILESEXTRAPATHS =. "${FILE_DIRNAME}/gcc-4.9:" |
| 12 | |
| 13 | DEPENDS =+ "mpfr gmp libmpc zlib" |
| 14 | NATIVEDEPS = "mpfr-native gmp-native libmpc-native zlib-native" |
| 15 | |
| 16 | LICENSE = "GPL-3.0-with-GCC-exception & GPLv3" |
| 17 | |
| 18 | LIC_FILES_CHKSUM = "\ |
| 19 | file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552 \ |
| 20 | file://COPYING3;md5=d32239bcb673463ab874e80d47fae504 \ |
| 21 | file://COPYING3.LIB;md5=6a6a8e020838b23406c81b19c1d46df6 \ |
| 22 | file://COPYING.LIB;md5=2d5025d4aa3495befef8f17206a5b0a1 \ |
| 23 | file://COPYING.RUNTIME;md5=fe60d87048567d4fe8c8a0ed2448bcc8 \ |
| 24 | " |
| 25 | |
| 26 | SRC_URI = "\ |
| 27 | ${GNU_MIRROR}/gcc/gcc-${PV}/gcc-${PV}.tar.bz2 \ |
| 28 | file://0001-gcc-4.3.1-ARCH_FLAGS_FOR_TARGET.patch \ |
| 29 | file://0002-uclibc-conf.patch \ |
| 30 | file://0003-gcc-uclibc-locale-ctype_touplow_t.patch \ |
| 31 | file://0004-uclibc-locale.patch \ |
| 32 | file://0005-uclibc-locale-no__x.patch \ |
| 33 | file://0006-uclibc-locale-wchar_fix.patch \ |
| 34 | file://0007-uclibc-locale-update.patch \ |
| 35 | file://0008-missing-execinfo_h.patch \ |
| 36 | file://0009-c99-snprintf.patch \ |
| 37 | file://0010-c99-complex-ugly-hack.patch \ |
| 38 | file://0011-index_macro.patch \ |
| 39 | file://0013-libstdc-namespace.patch \ |
| 40 | file://0014-sh-pr24836.patch \ |
| 41 | file://0015-arm-Use-TARGET_ENDIAN_OPTION-for-determining-MULTILI.patch \ |
| 42 | file://0016-gcc-poison-system-directories.patch \ |
| 43 | file://0017-gcc-poison-dir-extend.patch \ |
| 44 | file://0018-gcc-4.3.3-SYSROOT_CFLAGS_FOR_TARGET.patch \ |
| 45 | file://0019-64-bit-multilib-hack.patch \ |
| 46 | file://0020-optional-libstdc.patch \ |
| 47 | file://0021-gcc-disable-MASK_RELAX_PIC_CALLS-bit.patch \ |
| 48 | file://0022-COLLECT_GCC_OPTIONS.patch \ |
| 49 | file://0023-Use-the-defaults.h-in-B-instead-of-S-and-t-oe-in-B.patch \ |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 50 | file://0025-fortran-cross-compile-hack.patch \ |
| 51 | file://0026-libgcc-sjlj-check.patch \ |
| 52 | file://0027-cpp-honor-sysroot.patch \ |
| 53 | file://0028-MIPS64-Default-to-N64-ABI.patch \ |
| 54 | file://0029-Define-GLIBC_DYNAMIC_LINKER-and-UCLIBC_DYNAMIC_LINKE.patch \ |
| 55 | file://0030-gcc-Fix-argument-list-too-long-error.patch \ |
| 56 | file://0031-Disable-sdt.patch \ |
| 57 | file://0032-libtool.patch \ |
| 58 | file://0033-gcc-armv4-pass-fix-v4bx-to-linker-to-support-EABI.patch \ |
| 59 | file://0034-Use-the-multilib-config-files-from-B-instead-of-usin.patch \ |
| 60 | file://0040-fix-g++-sysroot.patch \ |
| 61 | file://0041-libtool-avoid-libdir.patch \ |
| 62 | file://0043-cpp.patch \ |
| 63 | file://0044-gengtypes.patch \ |
| 64 | file://0046-libatomic-deptracking.patch \ |
| 65 | file://0047-repomembug.patch \ |
| 66 | file://0049-Enable-SPE-AltiVec-generation-on-powepc-linux-target.patch \ |
| 67 | file://0050-Revert-Use-dbx_reg_number-for-spanning-registers.patch \ |
| 68 | file://0051-eabispe.patch \ |
| 69 | file://0052-Add-target-hook-to-override-DWARF2-frame-register-si.patch \ |
| 70 | file://0053-gcc-fix-segfault-from-calling-free-on-non-malloc-d-a.patch \ |
| 71 | file://0054-gcc-Makefile.in-fix-parallel-building-failure.patch \ |
| 72 | file://0055-dwarf-reg-processing-helper.patch \ |
| 73 | file://0056-define-default-cfa-register-mapping.patch \ |
| 74 | file://0057-aarch64-config.patch \ |
| 75 | file://0058-gcc-r212171.patch \ |
| 76 | file://0059-gcc-PR-rtl-optimization-63348.patch \ |
| 77 | file://0060-Only-allow-e500-double-in-SPE_SIMD_REGNO_P-registers.patch \ |
| 78 | file://0061-target-gcc-includedir.patch \ |
| 79 | file://0062-Use-SYSTEMLIBS_DIR-replacement-instead-of-hardcoding.patch \ |
| 80 | file://0063-nativesdk-gcc-support.patch \ |
| 81 | file://0064-handle-target-sysroot-multilib.patch \ |
Patrick Williams | f1e5d69 | 2016-03-30 15:21:19 -0500 | [diff] [blame] | 82 | file://0065-gcc-483-universal-initializer-no-warning.patch \ |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 83 | file://0066-cxxflags-for-build.patch \ |
| 84 | file://0067-fix-arm-thumb.patch \ |
| 85 | file://0067-gcc-musl-support.patch \ |
| 86 | file://0068-musl-dynamic-linker.patch \ |
| 87 | file://0069-musl-no-fixincludes.patch \ |
| 88 | file://0070-libstdc-musl.patch \ |
| 89 | file://0071-Ignore-fdebug-prefix-map-in-producer-string-by-Danie.patch \ |
| 90 | file://0072-support-ffile-prefix-map.patch \ |
| 91 | file://0073-Reuse-fdebug-prefix-map-to-replace-ffile-prefix-map.patch \ |
| 92 | file://0074-fdebug-prefix-map-support-to-remap-relative-path.patch \ |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 93 | " |
| 94 | SRC_URI[md5sum] = "6f831b4d251872736e8e9cc09746f327" |
| 95 | SRC_URI[sha256sum] = "2332b2a5a321b57508b9031354a8503af6fdfb868b8c1748d33028d100a8b67e" |
| 96 | |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 97 | UPSTREAM_CHECK_REGEX = "gcc-(?P<pver>4\.9\.\d+).tar" |
| 98 | |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 99 | S = "${TMPDIR}/work-shared/gcc-${PV}-${PR}/gcc-${PV}" |
| 100 | B = "${WORKDIR}/gcc-${PV}/build.${HOST_SYS}.${TARGET_SYS}" |
| 101 | |
| 102 | # Language Overrides |
| 103 | FORTRAN = "" |
| 104 | JAVA = "" |
| 105 | |
| 106 | LTO = "--enable-lto" |
| 107 | |
| 108 | EXTRA_OECONF_BASE = "\ |
| 109 | ${LTO} \ |
| 110 | --enable-libssp \ |
| 111 | --disable-bootstrap \ |
| 112 | --disable-libmudflap \ |
| 113 | --with-system-zlib \ |
| 114 | --with-linker-hash-style=${LINKER_HASH_STYLE} \ |
| 115 | --enable-linker-build-id \ |
| 116 | --with-ppl=no \ |
| 117 | --with-cloog=no \ |
| 118 | --enable-checking=release \ |
| 119 | --enable-cheaders=c_global \ |
| 120 | " |
| 121 | |
| 122 | EXTRA_OECONF_INITIAL = "\ |
| 123 | --disable-libmudflap \ |
| 124 | --disable-libgomp \ |
| 125 | --disable-libssp \ |
| 126 | --disable-libquadmath \ |
| 127 | --with-system-zlib \ |
| 128 | --disable-lto \ |
| 129 | --disable-plugin \ |
| 130 | --enable-decimal-float=no \ |
| 131 | " |
| 132 | |
| 133 | EXTRA_OECONF_append_libc-uclibc = " --disable-decimal-float " |
| 134 | |
| 135 | EXTRA_OECONF_PATHS = "\ |
| 136 | --with-gxx-include-dir=/not/exist{target_includedir}/c++/${BINV} \ |
| 137 | --with-sysroot=/not/exist \ |
| 138 | --with-build-sysroot=${STAGING_DIR_TARGET} \ |
| 139 | " |