diff --git a/projects/gitlab.com/procps-ng/procps/package.yml b/projects/gitlab.com/procps-ng/procps/package.yml index 39fa874d47..1b4773c3ff 100644 --- a/projects/gitlab.com/procps-ng/procps/package.yml +++ b/projects/gitlab.com/procps-ng/procps/package.yml @@ -31,6 +31,12 @@ build: - --prefix={{ prefix }} - --disable-nls - --disable-pidwait + # 4.0.7's top calls pthread_sigmask without linking -lpthread, assuming + # glibc >=2.34 where libpthread is merged into libc. The linux builder is + # glibc 2.28 (buster), where it still lives in libpthread.so. Harmless on + # newer glibc, where libpthread is an empty compat stub. Same pattern as + # openldap's -ldl. + LDFLAGS: $LDFLAGS -lpthread provides: - bin/free