[OE-core] [PATCH] libcap-ng: undefined reference to `pthread_atfork'

Khem Raj raj.khem at gmail.com
Sat Oct 26 09:03:58 UTC 2019


On Fri, Oct 25, 2019 at 9:20 PM Trevor Woerner <twoerner at gmail.com> wrote:
>
> Some hosts need -lpthread in order to link properly (e.g. openSUSE 15.1).
>
> Signed-off-by: Trevor Woerner <twoerner at gmail.com>
> ---
>  meta/recipes-support/libcap-ng/libcap-ng_0.7.10.bb | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/meta/recipes-support/libcap-ng/libcap-ng_0.7.10.bb b/meta/recipes-support/libcap-ng/libcap-ng_0.7.10.bb
> index 6e6de45494..01ea9a1490 100644
> --- a/meta/recipes-support/libcap-ng/libcap-ng_0.7.10.bb
> +++ b/meta/recipes-support/libcap-ng/libcap-ng_0.7.10.bb
> @@ -3,6 +3,7 @@ require libcap-ng.inc
>  inherit lib_package autotools
>
>  EXTRA_OECONF += "--without-python --without-python3"
> +LDFLAGS_append_class-native = " -lpthread"

Please use -pthread instead of -lpthread

>
>  BBCLASSEXTEND = "native nativesdk"
>
> --
> 2.23.0.37.g745f681289
>
> --
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core at lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core


More information about the Openembedded-core mailing list