From 43d53399406b08bdfeb78727cd122578aee4894a Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Wed, 11 Jan 2017 03:41:10 +0100 Subject: tools: cmake: link librt if needed (FS#381) Patch cmakes cmcurl component to unconditionally link librt when we discover a clock_gettime() symbol in -lrt. This is required to sucessfully link LibreSSL's libcrypto which might or might not reqauire librt. Signed-off-by: Jo-Philipp Wich --- tools/cmake/Makefile | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'tools/cmake/Makefile') diff --git a/tools/cmake/Makefile b/tools/cmake/Makefile index 6214da748b..a1137c5b50 100644 --- a/tools/cmake/Makefile +++ b/tools/cmake/Makefile @@ -20,9 +20,7 @@ HOST_CONFIGURE_PARALLEL:=1 include $(INCLUDE_DIR)/host-build.mk HOST_CONFIGURE_CMD := \ - MAKEFLAGS="$(HOST_JOBS)" \ - LDFLAGS="$$$$(pkg-config --static --libs libcrypto)" \ - $(BASH) ./configure + MAKEFLAGS="$(HOST_JOBS)" $(BASH) ./configure HOST_CONFIGURE_VARS := -- cgit v1.2.3