tools: mkimage: use pkg-config to discover libcrypto linker flags
authorJo-Philipp Wich <jo@mein.io>
Thu, 5 Jan 2017 13:15:32 +0000 (14:15 +0100)
committerJo-Philipp Wich <jo@mein.io>
Thu, 5 Jan 2017 13:21:27 +0000 (14:21 +0100)
commit0c03650160d388f5dd83ba3e30da5d8223acf283
tree2b15f9797d62a0a1ef2c40ca6f1d5ffe7f58d06e
parentbfb2512a4e3e6b70ed62c73274d6f72317b1c86d
tools: mkimage: 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/mkimage/Makefile