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@gmail.com>
lede-17.01
Florian Fainelli 2016-12-31 16:13:34 -08:00 committed by Jo-Philipp Wich
parent 28d626556d
commit e200c66a1a
1 changed files with 2 additions and 0 deletions

View File

@ -51,6 +51,8 @@ define Package/rpcd/conffiles
/etc/config/rpcd /etc/config/rpcd
endef endef
TARGET_LDFLAGS += -lcrypt
define Package/rpcd/install define Package/rpcd/install
$(INSTALL_DIR) $(1)/etc/init.d $(INSTALL_DIR) $(1)/etc/init.d
$(INSTALL_BIN) ./files/rpcd.init $(1)/etc/init.d/rpcd $(INSTALL_BIN) ./files/rpcd.init $(1)/etc/init.d/rpcd