`pthread` is missing on OS X

For the record, this works for me without error:

(executable
 (name lib)
 (libraries threads)
 (flags (:standard -noautolink -cclib -lunix -cclib -lthreadsnat))
 (foreign_stubs (language c) (names libwrap))
 (modes (native object)))
2 Likes