Re: [PATCH] selftests: pidfd: Fix undefined reference to pthread_create()

From: Christian Brauner
Date: Tue Sep 24 2019 - 16:01:40 EST


On Tue, Sep 24, 2019 at 01:52:37PM -0600, Shuah Khan wrote:
> Fix build failure:
>
> undefined reference to `pthread_create'
> collect2: error: ld returned 1 exit status
>
> Fix CFLAGS to include pthread correctly.
>
> Signed-off-by: Shuah Khan <skhan@xxxxxxxxxxxxxxxxxxx>

Reviewed-by: Christian Brauner <christian.brauner@xxxxxxxxxx>

Thanks, Shuah!
Queued-up in my fixes branch and will be included after the merge window
closes. I'll also add a fixes tag and a cc for stable since this should
very likely be backported.

Christian