2008-03-18 10:41:39 +00:00
|
|
|
require gcc-configure-common.inc
|
|
|
|
|
2005-08-31 10:45:47 +00:00
|
|
|
USE_NLS = '${@base_conditional( "TARGET_OS", "linux-uclibc", "no", "", d )}'
|
|
|
|
|
2010-09-03 17:38:59 +00:00
|
|
|
EXTRA_OECONF += " --enable-poison-system-directories "
|
|
|
|
|
2010-06-08 19:32:01 +00:00
|
|
|
EXTRA_OECONF_PATHS = "--with-local-prefix=${STAGING_DIR_TARGET}${target_exec_prefix} \
|
2010-12-30 04:36:50 +00:00
|
|
|
--with-gxx-include-dir=${target_includedir}/c++ \
|
2007-11-12 11:25:30 +00:00
|
|
|
--with-sysroot=${STAGING_DIR_TARGET} \
|
|
|
|
--with-build-sysroot=${STAGING_DIR_TARGET}"
|
2005-08-31 10:45:47 +00:00
|
|
|
|
|
|
|
do_compile_prepend () {
|
|
|
|
export CC="${BUILD_CC}"
|
|
|
|
export AR_FOR_TARGET="${TARGET_SYS}-ar"
|
|
|
|
export RANLIB_FOR_TARGET="${TARGET_SYS}-ranlib"
|
|
|
|
export LD_FOR_TARGET="${TARGET_SYS}-ld"
|
|
|
|
export NM_FOR_TARGET="${TARGET_SYS}-nm"
|
|
|
|
export CC_FOR_TARGET="${CCACHE} ${TARGET_SYS}-gcc ${TARGET_CC_ARCH}"
|
|
|
|
}
|
|
|
|
|
2008-03-18 10:41:39 +00:00
|
|
|
LIBGCCS_VAR = "-lgcc_s"
|
|
|
|
LIBGCCS_VAR_avr32 = ""
|