[source] rpcd: Explicitly link with lcrypt

LEDE Commits lede-commits at lists.infradead.org
Fri Apr 28 08:11:05 PDT 2017


jow pushed a commit to source.git, branch lede-17.01:
https://git.lede-project.org/e200c66a1ad1ac62007084629da5dcc28ed822a0

commit e200c66a1ad1ac62007084629da5dcc28ed822a0
Author: Florian Fainelli <f.fainelli at gmail.com>
AuthorDate: Sat Dec 31 16:13:34 2016 -0800

    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 <f.fainelli at gmail.com>
---
 package/system/rpcd/Makefile | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/package/system/rpcd/Makefile b/package/system/rpcd/Makefile
index 9da7df8..d13f20e 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



More information about the lede-commits mailing list