diff options
Diffstat (limited to 'meta/recipes-devtools/gcc/gcc-cross-canadian.inc')
-rw-r--r-- | meta/recipes-devtools/gcc/gcc-cross-canadian.inc | 24 |
1 files changed, 14 insertions, 10 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-cross-canadian.inc b/meta/recipes-devtools/gcc/gcc-cross-canadian.inc index f0a03a6519..7da5058ae9 100644 --- a/meta/recipes-devtools/gcc/gcc-cross-canadian.inc +++ b/meta/recipes-devtools/gcc/gcc-cross-canadian.inc | |||
@@ -9,10 +9,12 @@ GCCMULTILIB = "--enable-multilib" | |||
9 | 9 | ||
10 | require gcc-configure-common.inc | 10 | require gcc-configure-common.inc |
11 | 11 | ||
12 | EXTRA_OECONF_PATHS = "--with-gxx-include-dir=${SDKPATH}/sysroots/${TUNE_PKGARCH}${TARGET_VENDOR}-${TARGET_OS}${target_includedir}/c++/${BINV} \ | 12 | EXTRA_OECONF_PATHS = "\ |
13 | --with-build-time-tools=${STAGING_DIR_NATIVE}${prefix_native}/${TARGET_SYS}/bin \ | 13 | --with-gxx-include-dir=${SDKPATH}/sysroots/${TUNE_PKGARCH}${TARGET_VENDOR}-${TARGET_OS}${target_includedir}/c++/${BINV} \ |
14 | --with-sysroot=${SDKPATH}/sysroots/${TUNE_PKGARCH}${TARGET_VENDOR}-${TARGET_OS} \ | 14 | --with-build-time-tools=${STAGING_DIR_NATIVE}${prefix_native}/${TARGET_SYS}/bin \ |
15 | --with-build-sysroot=${STAGING_DIR_TARGET}" | 15 | --with-sysroot=${SDKPATH}/sysroots/${TUNE_PKGARCH}${TARGET_VENDOR}-${TARGET_OS} \ |
16 | --with-build-sysroot=${STAGING_DIR_TARGET} \ | ||
17 | " | ||
16 | # We have to point gcc at a sysroot but we don't need to rebuild if this changes | 18 | # We have to point gcc at a sysroot but we don't need to rebuild if this changes |
17 | # e.g. we switch between different machines with different tunes. | 19 | # e.g. we switch between different machines with different tunes. |
18 | EXTRA_OECONF_PATHS[vardepsexclude] = "TUNE_PKGARCH" | 20 | EXTRA_OECONF_PATHS[vardepsexclude] = "TUNE_PKGARCH" |
@@ -82,14 +84,14 @@ FILES_${PN} = "\ | |||
82 | ${prefix}/${TARGET_SYS}/bin/* \ | 84 | ${prefix}/${TARGET_SYS}/bin/* \ |
83 | ${prefix}/${TARGET_SYS}/lib/* \ | 85 | ${prefix}/${TARGET_SYS}/lib/* \ |
84 | ${prefix}/${TARGET_SYS}/usr/include/* \ | 86 | ${prefix}/${TARGET_SYS}/usr/include/* \ |
85 | " | 87 | " |
86 | INSANE_SKIP_${PN} += "dev-so" | 88 | INSANE_SKIP_${PN} += "dev-so" |
87 | 89 | ||
88 | FILES_${PN}-doc = "\ | 90 | FILES_${PN}-doc = "\ |
89 | ${infodir} \ | 91 | ${infodir} \ |
90 | ${mandir} \ | 92 | ${mandir} \ |
91 | ${gcclibdir}/${TARGET_SYS}/${BINV}/include/README \ | 93 | ${gcclibdir}/${TARGET_SYS}/${BINV}/include/README \ |
92 | " | 94 | " |
93 | 95 | ||
94 | EXEEXT = "" | 96 | EXEEXT = "" |
95 | 97 | ||
@@ -156,11 +158,13 @@ SYSTEMHEADERS = "/usr/include" | |||
156 | SYSTEMLIBS = "${target_base_libdir}/" | 158 | SYSTEMLIBS = "${target_base_libdir}/" |
157 | SYSTEMLIBS1 = "${target_libdir}/" | 159 | SYSTEMLIBS1 = "${target_libdir}/" |
158 | 160 | ||
159 | EXTRA_OECONF += " --enable-poison-system-directories" | 161 | EXTRA_OECONF += "--enable-poison-system-directories" |
160 | 162 | ||
161 | EXTRA_OECONF += "--disable-libunwind-exceptions \ | 163 | EXTRA_OECONF += "\ |
162 | --with-mpfr=${STAGING_DIR_HOST}${layout_exec_prefix} \ | 164 | --disable-libunwind-exceptions \ |
163 | --with-mpc=${STAGING_DIR_HOST}${layout_exec_prefix}" | 165 | --with-mpfr=${STAGING_DIR_HOST}${layout_exec_prefix} \ |
166 | --with-mpc=${STAGING_DIR_HOST}${layout_exec_prefix} \ | ||
167 | " | ||
164 | 168 | ||
165 | # gcc 4.7 needs -isystem | 169 | # gcc 4.7 needs -isystem |
166 | export ARCH_FLAGS_FOR_TARGET = "--sysroot=${STAGING_DIR_TARGET} -isystem=${target_includedir}" | 170 | export ARCH_FLAGS_FOR_TARGET = "--sysroot=${STAGING_DIR_TARGET} -isystem=${target_includedir}" |