diff options
Diffstat (limited to 'meta/recipes-core/eglibc/eglibc.inc')
-rw-r--r-- | meta/recipes-core/eglibc/eglibc.inc | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/meta/recipes-core/eglibc/eglibc.inc b/meta/recipes-core/eglibc/eglibc.inc index 63c313ca48..8314cb1548 100644 --- a/meta/recipes-core/eglibc/eglibc.inc +++ b/meta/recipes-core/eglibc/eglibc.inc | |||
@@ -4,6 +4,21 @@ STAGINGCC = "gcc-cross-intermediate" | |||
4 | STAGINGCC_virtclass-nativesdk = "gcc-crosssdk-intermediate" | 4 | STAGINGCC_virtclass-nativesdk = "gcc-crosssdk-intermediate" |
5 | PATH_prepend = "${STAGING_BINDIR_TOOLCHAIN}.${STAGINGCC}:" | 5 | PATH_prepend = "${STAGING_BINDIR_TOOLCHAIN}.${STAGINGCC}:" |
6 | 6 | ||
7 | TOOLCHAIN_OPTIONS = " --sysroot=${STAGING_DIR_TCBOOTSTRAP}" | ||
8 | |||
9 | # siteconfig.bbclass runs configure which needs a working compiler | ||
10 | # For the compiler to work we need a working libc yet libc isn't | ||
11 | # in the sysroots directory at this point. This means the libc.so | ||
12 | # linker script won't work as the --sysroot setting isn't correct. | ||
13 | # Here we create a hacked up libc linker script and pass in the right | ||
14 | # flags to let configure work. Ugly. | ||
15 | EXTRASITECONFIG = "CFLAGS='${CFLAGS} -Wl,-L${WORKDIR}/site_config_libc -L${WORKDIR}/site_config_libc -L${SYSROOT_DESTDIR}${libdir} -L${SYSROOT_DESTDIR}${base_libdir} -Wl,-L${SYSROOT_DESTDIR}${libdir} -Wl,-L${SYSROOT_DESTDIR}${base_libdir}'" | ||
16 | siteconfig_do_siteconfig_gencache_prepend = " \ | ||
17 | mkdir -p ${WORKDIR}/site_config_libc; \ | ||
18 | cp ${SYSROOT_DESTDIR}${libdir}/libc.so ${WORKDIR}/site_config_libc; \ | ||
19 | sed -i -e 's# ${base_libdir}# ${SYSROOT_DESTDIR}${base_libdir}#g' -e 's# ${libdir}# ${SYSROOT_DESTDIR}${libdir}#g' ${WORKDIR}/site_config_libc/libc.so; \ | ||
20 | " | ||
21 | |||
7 | # nptl needs unwind support in gcc, which can't be built without glibc. | 22 | # nptl needs unwind support in gcc, which can't be built without glibc. |
8 | DEPENDS = "virtual/${TARGET_PREFIX}gcc-intermediate linux-libc-headers" | 23 | DEPENDS = "virtual/${TARGET_PREFIX}gcc-intermediate linux-libc-headers" |
9 | #this leads to circular deps, so lets not add it yet | 24 | #this leads to circular deps, so lets not add it yet |