From 6d266356e5ba1e7a1dd515e23d8f45ac8ff8020e Mon Sep 17 00:00:00 2001 From: Bernd Kuhls Date: Sun, 21 Feb 2016 10:50:05 +0100 Subject: [PATCH] package/patch: add optional support for attr When attr was compiled before, patch will use it as optional dependency: $ output/host/usr/bin/x86_64-linux-readelf -a output/target/usr/bin/patch | grep NEEDED 0x0000000000000001 (NEEDED) Shared library: [libattr.so.1] 0x0000000000000001 (NEEDED) Shared library: [libc.so.1] Signed-off-by: Bernd Kuhls Signed-off-by: Thomas Petazzoni --- package/patch/patch.mk | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/package/patch/patch.mk b/package/patch/patch.mk index 765dfa923b..3a942524f0 100644 --- a/package/patch/patch.mk +++ b/package/patch/patch.mk @@ -10,4 +10,11 @@ PATCH_SITE = $(BR2_GNU_MIRROR)/patch PATCH_LICENSE = GPLv3+ PATCH_LICENSE_FILES = COPYING +ifeq ($(BR2_PACKAGE_ATTR),y) +PATCH_CONF_OPTS += --enable-attr +PATCH_DEPENDENCIES += attr +else +PATCH_CONF_OPTS += --disable-attr +endif + $(eval $(autotools-package)) -- 2.30.2