diff options
Diffstat (limited to 'meta/recipes-devtools/gcc/gcc-cross-canadian.inc')
-rw-r--r-- | meta/recipes-devtools/gcc/gcc-cross-canadian.inc | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-cross-canadian.inc b/meta/recipes-devtools/gcc/gcc-cross-canadian.inc index 7c4233c211..20dbec7248 100644 --- a/meta/recipes-devtools/gcc/gcc-cross-canadian.inc +++ b/meta/recipes-devtools/gcc/gcc-cross-canadian.inc | |||
@@ -3,7 +3,7 @@ inherit cross-canadian | |||
3 | SUMMARY = "GNU cc and gcc C compilers (cross-canadian for ${TARGET_ARCH} target)" | 3 | SUMMARY = "GNU cc and gcc C compilers (cross-canadian for ${TARGET_ARCH} target)" |
4 | PN = "gcc-cross-canadian-${TRANSLATED_TARGET_ARCH}" | 4 | PN = "gcc-cross-canadian-${TRANSLATED_TARGET_ARCH}" |
5 | 5 | ||
6 | DEPENDS = "virtual/${TARGET_PREFIX}gcc virtual/${HOST_PREFIX}gcc virtual/${HOST_PREFIX}binutils virtual/nativesdk-libc nativesdk-gettext flex-native virtual/libc" | 6 | DEPENDS = "virtual/nativesdk-cross-cc virtual/cross-cc virtual/nativesdk-cross-binutils virtual/nativesdk-libc nativesdk-gettext flex-native virtual/libc" |
7 | 7 | ||
8 | GCCMULTILIB = "--enable-multilib" | 8 | GCCMULTILIB = "--enable-multilib" |
9 | 9 | ||
@@ -64,6 +64,9 @@ do_configure () { | |||
64 | } | 64 | } |
65 | 65 | ||
66 | do_compile () { | 66 | do_compile () { |
67 | remove_sysroot_paths_from_configargs '/host' | ||
68 | remove_sysroot_paths_from_checksum_options '${STAGING_DIR_HOST}' '/host' | ||
69 | |||
67 | oe_runmake all-host configure-target-libgcc | 70 | oe_runmake all-host configure-target-libgcc |
68 | (cd ${B}/${TARGET_SYS}/libgcc; oe_runmake enable-execute-stack.c unwind.h md-unwind-support.h sfp-machine.h gthr-default.h) | 71 | (cd ${B}/${TARGET_SYS}/libgcc; oe_runmake enable-execute-stack.c unwind.h md-unwind-support.h sfp-machine.h gthr-default.h) |
69 | } | 72 | } |
@@ -129,7 +132,7 @@ do_install () { | |||
129 | dest=${D}${libexecdir}/gcc/${TARGET_SYS}/${BINV}/ | 132 | dest=${D}${libexecdir}/gcc/${TARGET_SYS}/${BINV}/ |
130 | install -d $dest | 133 | install -d $dest |
131 | suffix=${EXEEXT} | 134 | suffix=${EXEEXT} |
132 | for t in ar as ld ld.bfd ld.gold nm objcopy objdump ranlib strip g77 gcc cpp gfortran; do | 135 | for t in ar as ld ld.bfd nm objcopy objdump ranlib strip g77 gcc cpp gfortran; do |
133 | if [ "$t" = "g77" -o "$t" = "gfortran" ] && [ ! -e ${D}${bindir}/${TARGET_PREFIX}$t$suffix ]; then | 136 | if [ "$t" = "g77" -o "$t" = "gfortran" ] && [ ! -e ${D}${bindir}/${TARGET_PREFIX}$t$suffix ]; then |
134 | continue | 137 | continue |
135 | fi | 138 | fi |
@@ -172,6 +175,8 @@ do_install () { | |||
172 | done | 175 | done |
173 | done | 176 | done |
174 | done | 177 | done |
178 | |||
179 | cleanup_installed_include_fixed | ||
175 | } | 180 | } |
176 | 181 | ||
177 | ELFUTILS = "nativesdk-elfutils" | 182 | ELFUTILS = "nativesdk-elfutils" |