From 6aa414ea0e7258f9ab685934d69e078fc036f1a7 Mon Sep 17 00:00:00 2001 From: Joshua Watt Date: Thu, 23 Feb 2023 08:48:39 -0600 Subject: [PATCH] libvpx: Explicitly link with pthread support When building for the native build host, explicitly add the -pthread option to link against the pthread libraries. This errors like: vp9_encoder.c:(.text+0x2073): undefined reference to `pthread_once' when building the native variant Signed-off-by: Joshua Watt Signed-off-by: Khem Raj --- meta-oe/recipes-multimedia/webm/libvpx_1.12.0.bb | 1 + 1 file changed, 1 insertion(+) diff --git a/meta-oe/recipes-multimedia/webm/libvpx_1.12.0.bb b/meta-oe/recipes-multimedia/webm/libvpx_1.12.0.bb index 066d7cc815..9c04c2a341 100644 --- a/meta-oe/recipes-multimedia/webm/libvpx_1.12.0.bb +++ b/meta-oe/recipes-multimedia/webm/libvpx_1.12.0.bb @@ -19,6 +19,7 @@ S = "${WORKDIR}/git" ARM_INSTRUCTION_SET = "arm" CFLAGS += "-fPIC" +BUILD_LDFLAGS += "-pthread" export CC export LD = "${CC}"