Merge pull request #78 from jmesmon/fix-cargo-disable-static

cargo: avoid build failure due to --disable-static not being recognized
This commit is contained in:
Doug Goldstein
2016-09-15 11:14:48 -05:00
committed by GitHub

View File

@@ -76,6 +76,9 @@ PACKAGECONFIG[rust-snapshot] = "--local-rust-root=${B}/rustc"
# Used in libgit2-sys's build.rs, needed for pkg-config to be used
export LIBGIT2_SYS_USE_PKG_CONFIG = "1"
# cargo's configure doesn't recognize --disable-static, so remove it.
DISABLE_STATIC = ""
do_configure () {
${@bb.utils.contains('PACKAGECONFIG', 'rust-snapshot', '${S}/.travis.install.deps.sh', ':', d)}