diff options
Diffstat (limited to 'meta/recipes-devtools/gcc/gcc-configure-cross.inc')
-rw-r--r-- | meta/recipes-devtools/gcc/gcc-configure-cross.inc | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-configure-cross.inc b/meta/recipes-devtools/gcc/gcc-configure-cross.inc new file mode 100644 index 0000000000..6051a7678e --- /dev/null +++ b/meta/recipes-devtools/gcc/gcc-configure-cross.inc | |||
@@ -0,0 +1,22 @@ | |||
1 | require gcc-configure-common.inc | ||
2 | |||
3 | USE_NLS = '${@base_conditional( "TARGET_OS", "linux-uclibc", "no", "", d )}' | ||
4 | |||
5 | EXTRA_OECONF_PATHS = "--with-local-prefix=${STAGING_DIR_TARGET}${target_exec_prefix} \ | ||
6 | --with-gxx-include-dir=${STAGING_DIR_TARGET}/${target_includedir}/c++ \ | ||
7 | --with-sysroot=${STAGING_DIR_TARGET} \ | ||
8 | --with-build-sysroot=${STAGING_DIR_TARGET}" | ||
9 | |||
10 | do_compile_prepend () { | ||
11 | export CC="${BUILD_CC}" | ||
12 | export AR_FOR_TARGET="${TARGET_SYS}-ar" | ||
13 | export RANLIB_FOR_TARGET="${TARGET_SYS}-ranlib" | ||
14 | export LD_FOR_TARGET="${TARGET_SYS}-ld" | ||
15 | export NM_FOR_TARGET="${TARGET_SYS}-nm" | ||
16 | export CC_FOR_TARGET="${CCACHE} ${TARGET_SYS}-gcc ${TARGET_CC_ARCH}" | ||
17 | } | ||
18 | |||
19 | LIBGCCS_VAR = "-lgcc_s" | ||
20 | LIBGCCS_VAR_avr32 = "" | ||
21 | |||
22 | do_package_write_ipk[depends] += "virtual/libc:do_package" | ||