mirror of
https://git.yoctoproject.org/poky
synced 2026-05-30 00:20:08 +00:00
gcc4-build-sdk.inc: Set build-sysroot option and simplify other sysroot options. The with-sysroot option is likely bogus and should be removed.
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@3131 311d38ba-8fff-0310-9ca6-ca027cbcb966
This commit is contained in:
@@ -1,14 +1,9 @@
|
|||||||
USE_NLS = '${@base_conditional( "TARGET_OS", "linux-uclibc", "no", "", d )}'
|
USE_NLS = '${@base_conditional( "TARGET_OS", "linux-uclibc", "no", "", d )}'
|
||||||
USE_NLS = '${@base_conditional( "TARGET_OS", "linux-uclibcgnueabi", "no", "", d )}'
|
USE_NLS = '${@base_conditional( "TARGET_OS", "linux-uclibcgnueabi", "no", "", d )}'
|
||||||
|
|
||||||
SYSROOT = "${WORKDIR}/sysroot"
|
EXTRA_OECONF += "--with-sysroot=${STAGING_DIR_TARGET} --with-build-sysroot=${STAGING_DIR_TARGET}"
|
||||||
EXTRA_OECONF += "--with-sysroot=${SYSROOT}"
|
|
||||||
|
|
||||||
do_configure () {
|
do_configure () {
|
||||||
# Work around Hardcoded path assumptions in gcc
|
|
||||||
mkdir -p ${SYSROOT}/usr/
|
|
||||||
ln -s ${STAGING_DIR_TARGET}${layout_includedir} ${SYSROOT}/usr/include
|
|
||||||
ln -s ${STAGING_DIR_TARGET}${layout_libdir} ${SYSROOT}/usr/lib
|
|
||||||
(cd ${S} && gnu-configize) || die "failure running gnu-configize"
|
(cd ${S} && gnu-configize) || die "failure running gnu-configize"
|
||||||
(cd ${S}/libstdc++-v3 && autoreconf)
|
(cd ${S}/libstdc++-v3 && autoreconf)
|
||||||
oe_runconf
|
oe_runconf
|
||||||
|
|||||||
Reference in New Issue
Block a user