On Wed, May 12, 2021 at 12:25 PM Khem Raj <raj.k...@gmail.com> wrote:
>
> libnpth.so uses pthread_create so ensure its linked in
>
> Fixes
>
> tmp/work/core2-32-yoe-linux/npth/1.6-r0/recipe-sysroot-native/usr/bin/i686-yoe-linux/i686-yoe-linux-ld:
>  ../src/.libs/libnpth.so: undefined reference to `pthread_create'

Seems like something which should be fixed by a patch to the source
code (and submitted upstream).

> Signed-off-by: Khem Raj <raj.k...@gmail.com>
> ---
>  meta/recipes-support/npth/npth_1.6.bb | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/meta/recipes-support/npth/npth_1.6.bb 
> b/meta/recipes-support/npth/npth_1.6.bb
> index 94a3f00eac..7b3ad0c95d 100644
> --- a/meta/recipes-support/npth/npth_1.6.bb
> +++ b/meta/recipes-support/npth/npth_1.6.bb
> @@ -18,6 +18,8 @@ BINCONFIG = "${bindir}/npth-config"
>
>  inherit autotools binconfig-disabled multilib_header
>
> +LDFLAGS += "-pthread"
> +
>  FILES_${PN} = "${libdir}/libnpth.so.*"
>  FILES_${PN}-dev += "${bindir}/npth-config"
>
> --
> 2.31.1
>
>
> 
>
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#151674): 
https://lists.openembedded.org/g/openembedded-core/message/151674
Mute This Topic: https://lists.openembedded.org/mt/82781434/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to