diff options
| author | Joshua Watt <jpewhacker@gmail.com> | 2023-02-23 08:48:39 -0600 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2023-02-24 08:45:44 -0800 |
| commit | 6aa414ea0e7258f9ab685934d69e078fc036f1a7 (patch) | |
| tree | bf88e384e5139e58d7eb50cbc5dcf40ced17afa2 | |
| parent | 3092ceda51f9eb0be8c425d6402d6cafb1a5204b (diff) | |
| download | meta-openembedded-6aa414ea0e7258f9ab685934d69e078fc036f1a7.tar.gz | |
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 <JPEWhacker@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
| -rw-r--r-- | meta-oe/recipes-multimedia/webm/libvpx_1.12.0.bb | 1 |
1 files changed, 1 insertions, 0 deletions
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" | |||
| 19 | ARM_INSTRUCTION_SET = "arm" | 19 | ARM_INSTRUCTION_SET = "arm" |
| 20 | 20 | ||
| 21 | CFLAGS += "-fPIC" | 21 | CFLAGS += "-fPIC" |
| 22 | BUILD_LDFLAGS += "-pthread" | ||
| 22 | 23 | ||
| 23 | export CC | 24 | export CC |
| 24 | export LD = "${CC}" | 25 | export LD = "${CC}" |
