ariya/phantomjs — pull request #385 by p (2013-01-05 12:57:53+00:00)
Title: -ldl is needed only on Linux, not on all Unices.

In particular on FreeBSD there is no -ldl as the respective
functionality is in -lc.

http://code.google.com/p/phantomjs/issues/detail?id=597