diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-05-30 13:32:54 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-06-01 14:29:30 +0100 |
commit | fe5bc386f6f6d5dabc40ccdb0de0f6ef8c9f6b9d (patch) | |
tree | 58c417e356861e4daa76ce2b8fe66d4bc4901f46 /meta/recipes-devtools/gcc/gcc-configure-common.inc | |
parent | 3caca17be174ce87ff8565d50c082163b2cca4ae (diff) | |
download | poky-fe5bc386f6f6d5dabc40ccdb0de0f6ef8c9f6b9d.tar.gz |
gcc: Clean up configure_prepend and fix for mingw
The do_configure_prepend was duplicated in gcc-4.X.inc and
gcc-configure-common.inc leading to confusion when reading the resulting
do_configure task where the file was processed twice.
The only difference was the removal of the include line for gcc 4.8/4.9.
On mingw were were seeing two issues, firstly that the if statements meant
the values we wanted weren't being set, the second that the include
paths were still wrong as there was no header path set.
To fix the first issue, the #ifdef conditionals were removed, we want
to set these things unconditionally. The second issue is addressed by
setting the NATIVE_SYSTEM_HEADER_DIR variable here (it was already
set in t-oe).
(From OE-Core rev: db44be06c75f2ac17a55dd1764471e869e872b8b)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/gcc/gcc-configure-common.inc')
-rw-r--r-- | meta/recipes-devtools/gcc/gcc-configure-common.inc | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-configure-common.inc b/meta/recipes-devtools/gcc/gcc-configure-common.inc index 31e3cc4551..4a105540fa 100644 --- a/meta/recipes-devtools/gcc/gcc-configure-common.inc +++ b/meta/recipes-devtools/gcc/gcc-configure-common.inc | |||
@@ -78,15 +78,9 @@ do_configure_prepend () { | |||
78 | echo "NATIVE_SYSTEM_HEADER_DIR = ${SYSTEMHEADERS}" > ${B}/gcc/t-oe | 78 | echo "NATIVE_SYSTEM_HEADER_DIR = ${SYSTEMHEADERS}" > ${B}/gcc/t-oe |
79 | cat ${S}/gcc/defaults.h | grep -v "\#endif.*GCC_DEFAULTS_H" > ${B}/gcc/defaults.h.new | 79 | cat ${S}/gcc/defaults.h | grep -v "\#endif.*GCC_DEFAULTS_H" > ${B}/gcc/defaults.h.new |
80 | cat >>${B}/gcc/defaults.h.new <<_EOF | 80 | cat >>${B}/gcc/defaults.h.new <<_EOF |
81 | #ifndef STANDARD_INCLUDE_DIR | 81 | #define NATIVE_SYSTEM_HEADER_DIR "${SYSTEMHEADERS}" |
82 | #define STANDARD_INCLUDE_DIR "${SYSTEMHEADERS}" | ||
83 | #endif | ||
84 | #ifndef STANDARD_STARTFILE_PREFIX_1 | ||
85 | #define STANDARD_STARTFILE_PREFIX_1 "${SYSTEMLIBS}" | 82 | #define STANDARD_STARTFILE_PREFIX_1 "${SYSTEMLIBS}" |
86 | #endif | ||
87 | #ifndef STANDARD_STARTFILE_PREFIX_2 | ||
88 | #define STANDARD_STARTFILE_PREFIX_2 "${SYSTEMLIBS1}" | 83 | #define STANDARD_STARTFILE_PREFIX_2 "${SYSTEMLIBS1}" |
89 | #endif | ||
90 | #define SYSTEMLIBS_DIR "${SYSTEMLIBS}" | 84 | #define SYSTEMLIBS_DIR "${SYSTEMLIBS}" |
91 | #endif /* ! GCC_DEFAULTS_H */ | 85 | #endif /* ! GCC_DEFAULTS_H */ |
92 | _EOF | 86 | _EOF |