aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2017-01-05 14:15:32 +0100
committerJo-Philipp Wich <jo@mein.io>2017-01-05 14:21:27 +0100
commit0c03650160d388f5dd83ba3e30da5d8223acf283 (patch)
tree2b15f9797d62a0a1ef2c40ca6f1d5ffe7f58d06e /tools
parentbfb2512a4e3e6b70ed62c73274d6f72317b1c86d (diff)
downloadupstream-0c03650160d388f5dd83ba3e30da5d8223acf283.tar.gz
upstream-0c03650160d388f5dd83ba3e30da5d8223acf283.tar.bz2
upstream-0c03650160d388f5dd83ba3e30da5d8223acf283.zip
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>
Diffstat (limited to 'tools')
-rw-r--r--tools/mkimage/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/mkimage/Makefile b/tools/mkimage/Makefile
index 87aaad4f2e..4aa822d606 100644
--- a/tools/mkimage/Makefile
+++ b/tools/mkimage/Makefile
@@ -31,8 +31,8 @@ define Host/Prepare
endef
define Host/Compile
- $(MAKE) -C $(HOST_BUILD_DIR) defconfig HOSTCFLAGS="$(HOST_CPPFLAGS) $(HOST_CFLAGS)" HOSTLDFLAGS="$(HOST_LDFLAGS)"
- $(MAKE) -C $(HOST_BUILD_DIR) tools-only HOSTCFLAGS="$(HOST_CPPFLAGS) $(HOST_CFLAGS)" HOSTLDFLAGS="$(HOST_LDFLAGS)"
+ $(MAKE) -C $(HOST_BUILD_DIR) defconfig HOSTCFLAGS="$(HOST_CPPFLAGS) $(HOST_CFLAGS)" HOSTLDFLAGS="$(HOST_LDFLAGS) $$$$(pkg-config --static --libs libcrypto)"
+ $(MAKE) -C $(HOST_BUILD_DIR) tools-only HOSTCFLAGS="$(HOST_CPPFLAGS) $(HOST_CFLAGS)" HOSTLDFLAGS="$(HOST_LDFLAGS) $$$$(pkg-config --static --libs libcrypto)"
endef
define Host/Install