To build libdispatch, follow these steps:
-
Install clang
-
Build and install libBlocksRuntime
-
Build and install libkqueue
-
Build and install libpthread_workqueue
-
Unpack the libdispatch tarball from here
-
Apply necessary patches from here
-
CC=clang ./configure
-
make
-
make install