summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/gcc/gcc-cross-canadian.inc
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/gcc/gcc-cross-canadian.inc')
-rw-r--r--meta/recipes-devtools/gcc/gcc-cross-canadian.inc24
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
10require gcc-configure-common.inc 10require gcc-configure-common.inc
11 11
12EXTRA_OECONF_PATHS = "--with-gxx-include-dir=${SDKPATH}/sysroots/${TUNE_PKGARCH}${TARGET_VENDOR}-${TARGET_OS}${target_includedir}/c++/${BINV} \ 12EXTRA_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.
18EXTRA_OECONF_PATHS[vardepsexclude] = "TUNE_PKGARCH" 20EXTRA_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"
86INSANE_SKIP_${PN} += "dev-so" 88INSANE_SKIP_${PN} += "dev-so"
87 89
88FILES_${PN}-doc = "\ 90FILES_${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
94EXEEXT = "" 96EXEEXT = ""
95 97
@@ -156,11 +158,13 @@ SYSTEMHEADERS = "/usr/include"
156SYSTEMLIBS = "${target_base_libdir}/" 158SYSTEMLIBS = "${target_base_libdir}/"
157SYSTEMLIBS1 = "${target_libdir}/" 159SYSTEMLIBS1 = "${target_libdir}/"
158 160
159EXTRA_OECONF += " --enable-poison-system-directories" 161EXTRA_OECONF += "--enable-poison-system-directories"
160 162
161EXTRA_OECONF += "--disable-libunwind-exceptions \ 163EXTRA_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
166export ARCH_FLAGS_FOR_TARGET = "--sysroot=${STAGING_DIR_TARGET} -isystem=${target_includedir}" 170export ARCH_FLAGS_FOR_TARGET = "--sysroot=${STAGING_DIR_TARGET} -isystem=${target_includedir}"