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>
HOST_CONFIGURE_CMD := MAKEFLAGS="$(HOST_JOBS)" $(BASH) ./configure
-HOST_CONFIGURE_VARS :=
+HOST_CONFIGURE_VARS := \
+ LDFLAGS="$$$$(pkg-config --static --libs libcrypto)"
HOST_CONFIGURE_ARGS := \
--prefix=$(STAGING_DIR_HOST)