tools: cmake: use different approach for passing LDFLAGS
[openwrt/openwrt.git] / tools / cmake / Makefile
index aaa3b33f4f3912a20be6237a54a31a2aea5f1049..6214da748b242c57b61786569203738a5f757fd2 100644 (file)
@@ -7,19 +7,22 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=cmake
-PKG_VERSION:=3.5.2
+PKG_VERSION:=3.7.1
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
-PKG_SOURCE_URL:=https://cmake.org/files/v3.5/ \
+PKG_SOURCE_URL:=https://cmake.org/files/v3.7/ \
                https://fossies.org/linux/misc/
-PKG_MD5SUM:=701386a1b5ec95f8d1075ecf96383e02
+PKG_HASH:=449a5bce64dbd4d5b9517ebd1a1248ed197add6ad27934478976fd5f1f9330e1
 
 HOST_BUILD_PARALLEL:=1
 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 :=