aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2017-01-11 02:43:04 +0100
committerJo-Philipp Wich <jo@mein.io>2017-01-11 03:48:30 +0100
commit69be65b594c4fafbc4e58dd3cd235547f02a33ca (patch)
tree1aece7d891b3e11cf4dafc8608f6619953303524 /tools
parent96a940308bc787fe24447ccb8d0aca0befc74736 (diff)
downloadupstream-69be65b594c4fafbc4e58dd3cd235547f02a33ca.tar.gz
upstream-69be65b594c4fafbc4e58dd3cd235547f02a33ca.tar.bz2
upstream-69be65b594c4fafbc4e58dd3cd235547f02a33ca.zip
tools: mkimage: pass crypto libraries through HOST_LOADLIBES (FS#381)
Since linker argument order is significant on modern host compilers, pass the required libcrypto libraries through the HOST_LOADLIBES variable in order to ensure proper order of the final linker command line. 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 4aa822d606..bfe60993e2 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) $$$$(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)"
+ $(MAKE) -C $(HOST_BUILD_DIR) defconfig HOSTCFLAGS="$(HOST_CPPFLAGS) $(HOST_CFLAGS)" HOSTLDFLAGS="$(HOST_LDFLAGS)" HOST_LOADLIBES="$$$$(pkg-config --static --libs libcrypto)"
+ $(MAKE) -C $(HOST_BUILD_DIR) tools-only HOSTCFLAGS="$(HOST_CPPFLAGS) $(HOST_CFLAGS)" HOSTLDFLAGS="$(HOST_LDFLAGS)" HOST_LOADLIBES="$$$$(pkg-config --static --libs libcrypto)"
endef
define Host/Install