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