mirror of
https://git.yoctoproject.org/poky
synced 2026-09-19 09:49:33 +02:00
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:
@@ -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 \
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user