diff options
author | Khem Raj <raj.khem@gmail.com> | 2012-04-10 00:32:23 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-04-30 11:37:25 +0100 |
commit | e06d1f2d853373dfe3f7dae653300e6568f191f8 (patch) | |
tree | 284c5ae3f59f8d892f6b8dff6badb6f610699c25 /meta/recipes-devtools/gcc | |
parent | aafa59064b9409e3ce06bf334ca250fc2c483acb (diff) | |
download | poky-e06d1f2d853373dfe3f7dae653300e6568f191f8.tar.gz |
gcc-4.7: Define own do_configure_prepend
gcc-4.7 does not define STANDARD_INCLUDE_DIR
(From OE-Core rev: 149a9911a00c79475d00382dcc384f355fbcdd02)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/gcc')
-rw-r--r-- | meta/recipes-devtools/gcc/gcc-4.7.inc | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-4.7.inc b/meta/recipes-devtools/gcc/gcc-4.7.inc index e61de0111f..5b58d8cfc9 100644 --- a/meta/recipes-devtools/gcc/gcc-4.7.inc +++ b/meta/recipes-devtools/gcc/gcc-4.7.inc | |||
@@ -100,3 +100,21 @@ EXTRA_OECONF_INTERMEDIATE = "--disable-libmudflap \ | |||
100 | 100 | ||
101 | EXTRA_OECONF_append_libc-uclibc = " --disable-decimal-float " | 101 | EXTRA_OECONF_append_libc-uclibc = " --disable-decimal-float " |
102 | 102 | ||
103 | do_configure_prepend () { | ||
104 | # teach gcc to find correct target includedir when checking libc ssp support | ||
105 | mkdir -p ${B}/gcc | ||
106 | echo "NATIVE_SYSTEM_HEADER_DIR = ${SYSTEMHEADERS}" > ${B}/gcc/t-oe | ||
107 | cat ${S}/gcc/defaults.h | grep -v "\#endif.*GCC_DEFAULTS_H" > ${B}/gcc/defaults.h.new | ||
108 | cat >>${B}/gcc/defaults.h.new <<_EOF | ||
109 | #ifndef STANDARD_STARTFILE_PREFIX_1 | ||
110 | #define STANDARD_STARTFILE_PREFIX_1 "${SYSTEMLIBS}" | ||
111 | #endif | ||
112 | #ifndef STANDARD_STARTFILE_PREFIX_2 | ||
113 | #define STANDARD_STARTFILE_PREFIX_2 "${SYSTEMLIBS1}" | ||
114 | #endif | ||
115 | #define SYSTEMLIBS_DIR "${SYSTEMLIBS}" | ||
116 | #endif /* ! GCC_DEFAULTS_H */ | ||
117 | _EOF | ||
118 | mv ${B}/gcc/defaults.h.new ${B}/gcc/defaults.h | ||
119 | } | ||
120 | |||