Remove hardcoded staging layout assumptions

git-svn-id: https://svn.o-hand.com/repos/poky/trunk@3116 311d38ba-8fff-0310-9ca6-ca027cbcb966
This commit is contained in:
Richard Purdie
2007-11-12 11:06:34 +00:00
parent 19f1bad378
commit 0e09147de1
18 changed files with 24 additions and 25 deletions

View File

@@ -4,7 +4,7 @@ PROVIDES = "virtual/${TARGET_PREFIX}gcc-initial"
PACKAGES = ""
# This is intended to be a -very- basic config
EXTRA_OECONF = "--with-local-prefix=${STAGING_DIR}/${TARGET_SYS} \
EXTRA_OECONF = "--with-local-prefix=${STAGING_DIR_TARGET}${layout_prefix} \
--with-newlib \
--disable-shared \
--disable-threads \

View File

@@ -7,8 +7,8 @@ EXTRA_OECONF += "--with-sysroot=${SYSROOT}"
do_configure () {
# Work around Hardcoded path assumptions in gcc
mkdir -p ${SYSROOT}/usr/
ln -s ${STAGING_DIR}/${TARGET_SYS}/include ${SYSROOT}/usr/include
ln -s ${STAGING_DIR}/${TARGET_SYS}/lib ${SYSROOT}/usr/lib
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}/libstdc++-v3 && autoreconf)
oe_runconf