linux-omap 2.6.39: sync with meta-texasinstruments
[openembedded.git] / recipes / gcc / gcc-4.2.2.inc
blobb826c99009396d63cf675b088bc770d99f243a41
1 require gcc-common.inc
2 LICENSE = "GPLv3"
4 DEPENDS = "mpfr gmp"
5 NATIVEDEPS = "mpfr-native gmp-native"
7 INC_PR = "r21"
9 SRC_URI = "${GNU_MIRROR}/gcc/gcc-${PV}/gcc-${PV}.tar.bz2;name=archive \
10         file://100-uclibc-conf.patch \
11         file://103-uclibc-conf-noupstream.patch \
12         file://200-uclibc-locale.patch \
13         file://203-uclibc-locale-no__x.patch \
14         file://204-uclibc-locale-wchar_fix.patch \
15         file://205-uclibc-locale-update.patch \
16         file://300-libstdc++-pic.patch \
17         file://301-missing-execinfo_h.patch \
18         file://302-c99-snprintf.patch \
19         file://303-c99-complex-ugly-hack.patch \
20         file://304-index_macro.patch \
21         file://305-libmudflap-susv3-legacy.patch \
22         file://306-libstdc++-namespace.patch \
23         file://307-locale_facets.patch \
24         file://402-libbackend_dep_gcov-iov.h.patch \
25         file://602-sdk-libstdc++-includes.patch \
26         file://740-sh-pr24836.patch \
27         file://800-arm-bigendian.patch \
28         file://801-arm-bigendian-eabi.patch \
29         file://904-flatten-switch-stmt-00.patch \
30         file://arm-nolibfloat.patch \
31         file://arm-softfloat.patch \
32         file://gcc41-configure.in.patch \
33         file://arm-thumb.patch \
34         file://arm-thumb-cache.patch \
35         file://zecke-xgcc-cpp.patch \
36         file://unbreak-armv4t.patch \
37         file://cache-amnesia.patch \
38         file://gfortran.patch \
39         file://gcc-4.0.2-e300c2c3.patch \
40         file://pr34130.patch \
41         file://fortran-static-linking.patch \
42         file://intermask-bigendian.patch \
43         file://Makefile.in.patch \
47 SRC_URI_append_avr32 = " \
48         file://gcc-4.2.2.atmel.1.0.8.patch.bz2 \
49         file://901-avr32-fix-no-cond-exec-before-reload.patch \
50         file://902-avr32-fix-sync-insn-instructions.patch \
51         file://903-avr32-fix-removal-of-redundant-cast-operations.patch \
55 SRC_URI_append_ep93xx = " \
56         file://arm-crunch-saveregs.patch \
57         file://arm-crunch-20000320.patch \
58         file://arm-crunch-compare.patch \
59         file://arm-crunch-compare-unordered.patch \
60         file://arm-crunch-compare-geu.patch \
61         file://arm-crunch-eabi-ieee754.patch \
62         file://arm-crunch-eabi-ieee754-div.patch \
63         file://arm-crunch-64bit-disable0.patch \
64         file://arm-crunch-offset.patch \
65         file://arm-crunch-fp_consts.patch \
66         file://arm-crunch-neg2.patch \
67         file://arm-crunch-predicates3.patch \
68         file://arm-crunch-cfcvtds-disable.patch \
69         file://arm-crunch-floatsi-disable.patch \
70         file://arm-crunch-truncsi-disable.patch \
71         file://arm-crunch-cfcvt64-disable.patch \
72         file://arm-crunch-cirrus-bugfixes.patch \
73        "
75 PACKAGE_ARCH_ep93xx = "${MACHINE_ARCH}"
77 SRC_URI_append_sh3  = " file://sh3-installfix-fixheaders.patch "
79 # with sysroot this change is not needed for gcc 4.3+ but its needed
80 # for older compilers because of bug in libtool as well as this PR
81 # http://gcc.gnu.org/bugzilla/show_bug.cgi?id=5291
82 # we append the .la munging specially for libstdc++ and libsupc++ here
83 # This change if needed for other compilers in use should be put
84 # in there specific inc file.
86 do_install_append () {
87         for d in ${target_libdir} ${target_libdir}/nof; do
88                 sed -i "s|dependency_libs\s*=\s*.*|dependency_libs='-lm '|" ${D}$d/libsupc++.la || true
89                 sed -i "s|dependency_libs\s*=\s*.*|dependency_libs='-lm '|" ${D}$d/libstdc++.la || true
90         done
93 # Language Overrides
94 FORTRAN = ""
95 FORTRAN_linux-gnueabi = ",fortran"
96 JAVA = ""
98 EXTRA_OECONF_BASE = "--enable-libssp --disable-bootstrap --disable-libgomp --disable-libmudflap"
99 EXTRA_OECONF_INITIAL = "--disable-libmudflap --disable-libgomp --disable-libssp"
100 EXTRA_OECONF_INTERMEDIATE = "--disable-libmudflap --disable-libgomp --disable-libssp"
102 ARM_INSTRUCTION_SET = "arm"
104 SRC_URI[archive.md5sum] = "7ae33781417a35a2eb03ee098a9f4490"
105 SRC_URI[archive.sha256sum] = "673b85d780a082c014ded4ac11f8269a3fe893b4dbb584d65b8602d50b3872b1"