summaryrefslogtreecommitdiff
path: root/packages/binutils/binutils-cross.inc
diff options
context:
space:
mode:
Diffstat (limited to 'packages/binutils/binutils-cross.inc')
-rw-r--r--packages/binutils/binutils-cross.inc8
1 files changed, 4 insertions, 4 deletions
diff --git a/packages/binutils/binutils-cross.inc b/packages/binutils/binutils-cross.inc
index 642d5318e7..384d18cfa7 100644
--- a/packages/binutils/binutils-cross.inc
+++ b/packages/binutils/binutils-cross.inc
@@ -3,7 +3,7 @@ inherit cross
DEPENDS += "flex-native bison-native"
PROVIDES = "virtual/${TARGET_PREFIX}binutils"
PACKAGES = ""
-EXTRA_OECONF = "--with-sysroot=${CROSS_DIR}/${TARGET_SYS} \
+EXTRA_OECONF = "--with-sysroot=${STAGING_DIR_TARGET} \
--program-prefix=${TARGET_PREFIX} \
--enable-install-libbfd \
--disable-werror"
@@ -24,9 +24,9 @@ do_stage () {
rmdir ${CROSS_DIR}/${prefix} || :
# We want to move this into the target specific location
- mkdir -p ${CROSS_DIR}/${TARGET_SYS}/lib
- mv -f ${CROSS_DIR}/lib/libiberty.a ${CROSS_DIR}/${TARGET_SYS}/lib || \
- mv -f ${CROSS_DIR}/lib64/libiberty.a ${CROSS_DIR}/${TARGET_SYS}/lib
+ mkdir -p ${STAGING_DIR_TARGET}/lib
+ mv -f ${CROSS_DIR}/lib/libiberty.a ${STAGING_DIR_TARGET}/lib || \
+ mv -f ${CROSS_DIR}/lib64/libiberty.a ${STAGING_DIR_TARGET}/lib
rmdir ${CROSS_DIR}/lib || :
rmdir ${CROSS_DIR}/lib64 || :
}