<div dir="ltr">Hi,<div><br></div><div>5745deb8 introduced linking with dl libraries, but it was not added to the .pc files. Therefore list of link flags given by pkg-config is incomplete and fails if `-ldl` is not added manually.</div><div><br></div><div>I have attached a patch which uses CMAKE_DL_LIBS variable (<a href="http://www.cmake.org/cmake/help/cmake2.6docs.html#variable:CMAKE_DL_LIBS" target="_blank">http://www.cmake.org/cmake/help/cmake2.6docs.html#variable:CMAKE_DL_LIBS</a>)<br><br>Thanks,</div><div><br></div><div>Isuru Fernando</div></div>