Message ID | 20230223144839.1843181-1-JPEWhacker@gmail.com |
---|---|
State | Under Review |
Headers | show |
Series | [meta-oe,v2] libvpx: Explicitly link with pthread support | expand |
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}"
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 <JPEWhacker@gmail.com> --- meta-oe/recipes-multimedia/webm/libvpx_1.12.0.bb | 1 + 1 file changed, 1 insertion(+)