summaryrefslogtreecommitdiffstats
path: root/recipes-devtools/gcc/gcc-configure-cross.inc
diff options
context:
space:
mode:
authorKoen Kooi <koen@dominion.thruhere.net>2010-11-02 22:03:58 +0100
committerKoen Kooi <koen@dominion.thruhere.net>2010-11-02 22:12:02 +0100
commitbe10a6b1321f250b1034c7d9d0a8ef18b296eef1 (patch)
tree9249025cbfbfbee4cc430d62b27f75301dd4dfde /recipes-devtools/gcc/gcc-configure-cross.inc
parent93b28937ac67ba46d65f55637e42552e224aa7e2 (diff)
downloadmeta-openembedded-be10a6b1321f250b1034c7d9d0a8ef18b296eef1.tar.gz
angstrom-layers: meta-openembedded: replace poky gcc 4.5 sources with OE ones
This needs further investigation, but for now we can get the tested sources into the poky gcc harness Signed-off-by: Koen Kooi <k-kooi@ti.com>
Diffstat (limited to 'recipes-devtools/gcc/gcc-configure-cross.inc')
-rw-r--r--recipes-devtools/gcc/gcc-configure-cross.inc24
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 @@
1require gcc-configure-common.inc
2
3USE_NLS = '${@base_conditional( "TARGET_OS", "linux-uclibc", "no", "", d )}'
4
5EXTRA_OECONF += " --enable-poison-system-directories "
6
7EXTRA_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
12do_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
21LIBGCCS_VAR = "-lgcc_s"
22LIBGCCS_VAR_avr32 = ""
23
24do_package_write_ipk[depends] += "virtual/libc:do_package"