remove some extra lines, question marks, and add another rpath

This commit is contained in:
Cody P Schafer
2014-12-02 23:07:17 -05:00
parent ab0eafea8d
commit 8cc784c414
3 changed files with 9 additions and 6 deletions
+5
View File
@@ -12,6 +12,11 @@ PN = "rust-cross-${TARGET_ARCH}"
# here because cross.bblcass is "helpful" and blanks it out.
#TARGET_PRE_LINK_ARGS_append = " --sysroot=${STAGING_DIR_TARGET}"
# FIXME: the only way to convince cargo to include the rpath is via editing
# Config.toml, and doing that safely requires us to write actual patches
HOST_PRE_LINK_ARGS_append = " -Wl,-rpath=${libdir}"
BUILD_PRE_LINK_ARGS_append = " -Wl,-rpath=${libdir}"
# We need the same thing for the calls to the compiler when building the runtime crap
TARGET_CC_ARCH_append = " --sysroot=${STAGING_DIR_TARGET}"
-2
View File
@@ -22,5 +22,3 @@ EXTRA_OECARGO_PATHS = "\
${WORKDIR}/gcc-rs \
${WORKDIR}/ssh2-rs \
"
+4 -4
View File
@@ -49,10 +49,10 @@ PRE_LINK_ARGS[i586] = "-Wl,--as-needed -m32"
# XXX: for some reason bitbake sets BUILD_* & TARGET_* but uses the bare
# variables for HOST. Alias things to make it easier for us.
HOST_LDFLAGS ??= "${LDFLAGS}"
HOST_CFLAGS ??= "${CFLAGS}"
HOST_CXXFLAGS ??= "${CXXFLAGS}"
HOST_CPPFLAGS ??= "${CPPFLAGS}"
HOST_LDFLAGS ?= "${LDFLAGS}"
HOST_CFLAGS ?= "${CFLAGS}"
HOST_CXXFLAGS ?= "${CXXFLAGS}"
HOST_CPPFLAGS ?= "${CPPFLAGS}"
# XXX: BITBAKE-BUG: *_PRE_LINK_ARGS used to be set via function invocation, but
# that caused bitbake to error on users of these variables without any