summaryrefslogtreecommitdiffstats
path: root/meta/packages/gcc/gcc-configure-common.inc
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@linux.intel.com>2010-07-15 10:19:12 +0100
committerRichard Purdie <rpurdie@linux.intel.com>2010-07-15 10:19:12 +0100
commitbaf69e6a929344368284128038959228e073ed7a (patch)
tree43814ccea0bf162fee1a2862075fc93306111f96 /meta/packages/gcc/gcc-configure-common.inc
parentc50e585588c5e83548c49e95190ff02923b18123 (diff)
downloadpoky-baf69e6a929344368284128038959228e073ed7a.tar.gz
binutils/gcc-crosssdk: Fix hardcoded path layout assumptions for cross toolchains
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'meta/packages/gcc/gcc-configure-common.inc')
-rw-r--r--meta/packages/gcc/gcc-configure-common.inc4
1 files changed, 4 insertions, 0 deletions
diff --git a/meta/packages/gcc/gcc-configure-common.inc b/meta/packages/gcc/gcc-configure-common.inc
index 58a527b51c..052c5a1bda 100644
--- a/meta/packages/gcc/gcc-configure-common.inc
+++ b/meta/packages/gcc/gcc-configure-common.inc
@@ -50,6 +50,7 @@ ARCH_FLAGS_FOR_TARGET = "${TARGET_CC_ARCH}"
50EXTRA_OEMAKE += "ARCH_FLAGS_FOR_TARGET='${ARCH_FLAGS_FOR_TARGET}'" 50EXTRA_OEMAKE += "ARCH_FLAGS_FOR_TARGET='${ARCH_FLAGS_FOR_TARGET}'"
51 51
52SYSTEMHEADERS = "${target_includedir}" 52SYSTEMHEADERS = "${target_includedir}"
53SYSTEMLIBS = "${target_base_libdir}/"
53SYSTEMLIBS1 = "${target_libdir}/" 54SYSTEMLIBS1 = "${target_libdir}/"
54 55
55do_configure () { 56do_configure () {
@@ -86,6 +87,9 @@ do_configure () {
86 echo "#ifndef STANDARD_INCLUDE_DIR" >> ${S}/gcc/defaults.h.new 87 echo "#ifndef STANDARD_INCLUDE_DIR" >> ${S}/gcc/defaults.h.new
87 echo "#define STANDARD_INCLUDE_DIR \"${SYSTEMHEADERS}\"" >> ${S}/gcc/defaults.h.new 88 echo "#define STANDARD_INCLUDE_DIR \"${SYSTEMHEADERS}\"" >> ${S}/gcc/defaults.h.new
88 echo "#endif" >> ${S}/gcc/defaults.h.new 89 echo "#endif" >> ${S}/gcc/defaults.h.new
90 echo "#ifndef STANDARD_STARTFILE_PREFIX_1" >> ${S}/gcc/defaults.h.new
91 echo "#define STANDARD_STARTFILE_PREFIX_1 \"${SYSTEMLIBS}\"" >> ${S}/gcc/defaults.h.new
92 echo "#endif" >> ${S}/gcc/defaults.h.new
89 echo "#ifndef STANDARD_STARTFILE_PREFIX_2" >> ${S}/gcc/defaults.h.new 93 echo "#ifndef STANDARD_STARTFILE_PREFIX_2" >> ${S}/gcc/defaults.h.new
90 echo "#define STANDARD_STARTFILE_PREFIX_2 \"${SYSTEMLIBS1}\"" >> ${S}/gcc/defaults.h.new 94 echo "#define STANDARD_STARTFILE_PREFIX_2 \"${SYSTEMLIBS1}\"" >> ${S}/gcc/defaults.h.new
91 echo "#endif" >> ${S}/gcc/defaults.h.new 95 echo "#endif" >> ${S}/gcc/defaults.h.new