cargo: avoid build failure due to --disable-static not being recognized

Not sure why this is starting to affect cargo now, but let's fix it.
This commit is contained in:
Cody P Schafer
2016-09-13 23:28:31 -04:00
parent 79166b9cf0
commit e47bf14904
+3
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 # Used in libgit2-sys's build.rs, needed for pkg-config to be used
export LIBGIT2_SYS_USE_PKG_CONFIG = "1" export LIBGIT2_SYS_USE_PKG_CONFIG = "1"
# cargo's configure doesn't recognize --disable-static, so remove it.
DISABLE_STATIC = ""
do_configure () { do_configure () {
${@bb.utils.contains('PACKAGECONFIG', 'rust-snapshot', '${S}/.travis.install.deps.sh', ':', d)} ${@bb.utils.contains('PACKAGECONFIG', 'rust-snapshot', '${S}/.travis.install.deps.sh', ':', d)}