From 7d137c5b21913e7d86851124f8f259dff409f9ed Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Mon, 4 May 2020 12:05:24 -0700 Subject: [PATCH] libgit2: Enable pcre2 regexp backend As a side effect it helps the builds where pcre is staged in native sysroot and CMake system is confusing that and adds it to linker cmdline, its evident with clang as cross compiler since it brings libpcre-native into native sysroot Signed-off-by: Khem Raj Cc: Alistair Francis --- meta-oe/recipes-support/libgit2/libgit2_1.0.0.bb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/meta-oe/recipes-support/libgit2/libgit2_1.0.0.bb b/meta-oe/recipes-support/libgit2/libgit2_1.0.0.bb index fd26a0fe911..74343683f91 100644 --- a/meta-oe/recipes-support/libgit2/libgit2_1.0.0.bb +++ b/meta-oe/recipes-support/libgit2/libgit2_1.0.0.bb @@ -3,7 +3,7 @@ HOMEPAGE = "http://libgit2.github.com/" LICENSE = "GPL-2.0-with-GCC-exception & MIT" LIC_FILES_CHKSUM = "file://COPYING;md5=5b002a195fb7ea2d8d583f07eaff3a8e" -DEPENDS = "curl openssl zlib libssh2 libgcrypt" +DEPENDS = "curl openssl zlib libssh2 libgcrypt libpcre2" SRC_URI = "git://github.com/libgit2/libgit2.git;branch=maint/v1.0" SRCREV = "7d3c7057f0e774aecd6fc4ef8333e69e5c4873e0" @@ -16,6 +16,7 @@ EXTRA_OECMAKE = "\ -DBUILD_CLAR=OFF \ -DCMAKE_BUILD_TYPE=RelWithDebInfo \ -DLIB_INSTALL_DIR=${libdir} \ + -DREGEX_BACKEND='pcre2' \ " BBCLASSEXTEND = "native"