From: Florian Fainelli Date: Sun, 1 Jan 2017 00:13:34 +0000 (-0800) Subject: rpcd: Explicitly link with lcrypt X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=f3c5934981d7a30d122827b30d8bca330ce0fd60;p=openwrt%2Fstaging%2Fjogo.git rpcd: Explicitly link with lcrypt Fixes build issues with some toolchains that don't add lcrypt in the default search paths: CMakeFiles/rpcd.dir/session.c.o: In function `rpc_login_test_password': build_dir/target-mipsel-linux-gnu/rpcd-2016-12-03-0577cfc1/session.c:823: undefined reference to `crypt' collect2: error: ld returned 1 exit status Signed-off-by: Florian Fainelli --- diff --git a/package/system/rpcd/Makefile b/package/system/rpcd/Makefile index 9da7df85fb..d13f20eab4 100644 --- a/package/system/rpcd/Makefile +++ b/package/system/rpcd/Makefile @@ -51,6 +51,8 @@ define Package/rpcd/conffiles /etc/config/rpcd endef +TARGET_LDFLAGS += -lcrypt + define Package/rpcd/install $(INSTALL_DIR) $(1)/etc/init.d $(INSTALL_BIN) ./files/rpcd.init $(1)/etc/init.d/rpcd