sysroot specification

This commit is contained in:
Cody P Schafer
2014-11-17 01:39:39 -05:00
parent 5efa166345
commit c9d9b67368
3 changed files with 9 additions and 5 deletions
+4 -3
View File
@@ -7,14 +7,15 @@ DEPENDS += "virtual/${TARGET_PREFIX}gcc rust-native"
PROVIDES = "virtual/${TARGET_PREFIX}rust"
PN = "rust-cross-${TARGET_ARCH}"
# The same value as ${TOOLCHAIN_OPTIONS}. We can't use that variable directly
# here because cross.bblcass is "helpful" and blanks it out.
PRE_LINK_ARGS_PREPEND = "--sysroot=${STAGING_DIR_TARGET}"
## gcc-cross settings
# INHIBIT_DEFAULT_DEPS = "1"
# INHIBIT_PACKAGE_STRIP = "1"
# ARCH_FLAGS_FOR_TARGET += "-isystem${STAGING_DIR_NATIVE}${target_includedir}"
# TODO: use rust-native instead of a snapshot
EXTRA_OECONF += ""
# cross.bbclass is "helpful" and overrides our do_install. Tell it not to.
do_install () {
rust_do_install