package/cifs-utils: add optional support for keyutils
authorBernd Kuhls <bernd.kuhls@t-online.de>
Sun, 21 Feb 2016 10:51:22 +0000 (11:51 +0100)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sun, 21 Feb 2016 13:45:03 +0000 (14:45 +0100)
When keyutils was compiled before, cifs-utils will use it as optional
dependency:

$ output/host/usr/bin/x86_64-linux-readelf -a output/target/usr/bin/cifscreds | grep NEEDED
 0x0000000000000001 (NEEDED)             Shared library: [libkeyutils.so.1]
 0x0000000000000001 (NEEDED)             Shared library: [libc.so.1]

Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/cifs-utils/cifs-utils.mk

index e668b08c5558fa1e3f521111e2094d6af9789605..89358b1f171419fc5aea1523cf79207c501b1173 100644 (file)
@@ -14,6 +14,10 @@ ifeq ($(BR2_STATIC_LIBS),y)
 CIFS_UTILS_CONF_OPTS += --disable-pie
 endif
 
+ifeq ($(BR2_PACKAGE_KEYUTILS),y)
+CIFS_UTILS_DEPENDENCIES += keyutils
+endif
+
 define CIFS_UTILS_NO_WERROR
        $(SED) 's/-Werror//' $(@D)/Makefile.in
 endef