Merge commit 'refs/pull/3/merge' of https://github.com/jmesmon/meta-rust

This commit is contained in:
Cody P Schafer
2015-03-12 14:15:38 -04:00
+11
View File
@@ -22,4 +22,15 @@ EXTRA_OECMAKE = "\
CFLAGS_append .= " -fPIC" CFLAGS_append .= " -fPIC"
# Prior to poky commit 60d504b431fa7cdc6ded141def7ae18edb1834e5,
# the cmake class did not define CMAKE_AR in the generated toolchain
# file. This is needed to support building a static library.
# See https://github.com/jmesmon/meta-rust/issues/1
OECMAKE_AR ?= "${AR}"
cmake_do_generate_toolchain_file_append() {
cat >> ${WORKDIR}/toolchain.cmake <<EOF
set( CMAKE_AR ${OECMAKE_AR} CACHE FILEPATH "Archiver" )
EOF
}
BBCLASSEXTEND = "native" BBCLASSEXTEND = "native"