From: Jo-Philipp Wich Date: Thu, 5 Jan 2017 13:31:28 +0000 (+0100) Subject: tools: cmake: use different approach for passing LDFLAGS X-Git-Tag: v17.01.0-rc1~253 X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fopenwrt.git;a=commitdiff_plain;h=08d73bfdce36e4cbb6e2d3c2ef9073925ac8e7c8 tools: cmake: use different approach for passing LDFLAGS Funnel the required LDFLAGS environment through HOST_CONFIGURE_CMD for now as the HOST_CONFIGURE_VARS semantics are completely broken. Signed-off-by: Jo-Philipp Wich --- diff --git a/tools/cmake/Makefile b/tools/cmake/Makefile index 13390ab967..6214da748b 100644 --- a/tools/cmake/Makefile +++ b/tools/cmake/Makefile @@ -19,10 +19,12 @@ HOST_CONFIGURE_PARALLEL:=1 include $(INCLUDE_DIR)/host-build.mk -HOST_CONFIGURE_CMD := MAKEFLAGS="$(HOST_JOBS)" $(BASH) ./configure +HOST_CONFIGURE_CMD := \ + MAKEFLAGS="$(HOST_JOBS)" \ + LDFLAGS="$$$$(pkg-config --static --libs libcrypto)" \ + $(BASH) ./configure -HOST_CONFIGURE_VARS := \ - LDFLAGS="$$$$(pkg-config --static --libs libcrypto)" +HOST_CONFIGURE_VARS := HOST_CONFIGURE_ARGS := \ --prefix=$(STAGING_DIR_HOST)