tools: cmake: use pkg-config to discover libcrypto linker flags
authorJo-Philipp Wich <jo@mein.io>
Thu, 5 Jan 2017 13:16:57 +0000 (14:16 +0100)
committerJo-Philipp Wich <jo@mein.io>
Thu, 5 Jan 2017 13:21:27 +0000 (14:21 +0100)
commitf9b253147a27d4fbe2558624fc68323ff9de2f22
treea5f68690aeca12c502b79e677f969f8f750509e6
parent0c03650160d388f5dd83ba3e30da5d8223acf283
tools: cmake: use pkg-config to discover libcrypto linker flags

LibreSSL's libcrypto.so has an indirect dependency to librt for clock_gettime()
on Linux.

Use pkg-config to portably discover the required linker flags.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
tools/cmake/Makefile