rpcd: Explicitly link with lcrypt
authorFlorian Fainelli <f.fainelli@gmail.com>
Sun, 1 Jan 2017 00:13:34 +0000 (16:13 -0800)
committerFlorian Fainelli <f.fainelli@gmail.com>
Sun, 29 Jan 2017 19:51:02 +0000 (11:51 -0800)
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>
package/system/rpcd/Makefile

index 9da7df85fb91f7bd2063f9e01ec3d9493a2850ba..d13f20eab41861beaf6ef90354af996e8cd5ef76 100644 (file)
@@ -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