From 3698e333b18867649a58320c9db245938839747f Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Mon, 11 Apr 2022 07:41:37 -0700 Subject: [PATCH] evolution-data-server: Disable g-i on musl MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit g-i calls on musl are adding -L/usr/lib to linker path which confuses the build as it tried to use the libraries from build host and fails badly Fixes aarch64-yoe-linux-musl-ld: warning: library search path "/usr/lib" is unsafe for cross-compilation ... | /mnt/b/yoe/master/build/tmp/work/cortexa72-yoe-linux-musl/evolution-data-server/3.44.0-r0/recipe-sysroot-native/usr/bin/aarch64-yoe-linux-musl/aarch64-yoe-linux-musl-ld: skipping incompa tible /usr/lib/libunwind.so when searching for -l:libunwind.so | Error relocating /usr/lib/libz.so.1: unsupported relocation type 8 | Error relocating /usr/lib/libz.so.1: unsupported relocation type 8 Signed-off-by: Khem Raj Cc: Andreas Müller --- .../evolution-data-server/evolution-data-server.bb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/meta-gnome/recipes-gnome/evolution-data-server/evolution-data-server.bb b/meta-gnome/recipes-gnome/evolution-data-server/evolution-data-server.bb index 48cf6f76bc..b4931d796d 100644 --- a/meta-gnome/recipes-gnome/evolution-data-server/evolution-data-server.bb +++ b/meta-gnome/recipes-gnome/evolution-data-server/evolution-data-server.bb @@ -48,6 +48,9 @@ PACKAGECONFIG[openldap] = "-DWITH_OPENLDAP=ON,-DWITH_OPENLDAP=OFF,openldap" # -ldb needs this on some platforms LDFLAGS += "-lpthread -lgmodule-2.0 -lgthread-2.0" +# invokes libraries from build host +GI_DATA_ENABLED:libc-musl="False" + do_configure:append () { cp ${WORKDIR}/iconv-detect.h ${S}/src # avoid writing perl-native path into csv2vcard shebang