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 <jpewhac...@gmail.com> --- 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 066d7cc81..9c04c2a34 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}" -- 2.33.0
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#101233): https://lists.openembedded.org/g/openembedded-devel/message/101233 Mute This Topic: https://lists.openembedded.org/mt/97183842/21656 Group Owner: openembedded-devel+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-