HomeFreeBSD

libthr: filter rather than link with libsys

Description

libthr: filter rather than link with libsys

The allows gcc + GNU ld to link programs with -m32 -pthread without
erroring out due to _umtx_op_err being undefined (unless -lsys is added
to the link command.

We now always link _umtx_op_err into libthr (not just when it's static)
and filter it with libsys so we call that implementation. The dynamic
implementations (at least the assembly ones) should likely become stubs
as a further refinement.

Reviewed by: kib
Differential Revision: https://reviews.freebsd.org/D43783

Details

Provenance
brooksAuthored on Feb 7 2024, 7:38 PM
Reviewer
kib
Differential Revision
D14609: Split libc into libc and libsys
Parents
rG49076f376af5: libc: don't directly link libsys
Branches
Unknown
Tags
Unknown