aboutsummaryrefslogtreecommitdiff
path: root/package/patch
diff options
context:
space:
mode:
authorGravatar Bernd Kuhls <bernd.kuhls@t-online.de>2016-02-21 10:50:05 +0100
committerGravatar Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2016-02-21 12:29:49 +0100
commit6d266356e5ba1e7a1dd515e23d8f45ac8ff8020e (patch)
tree1c4f2b711c78474ce67757e02f7b254b7f1161b9 /package/patch
parent46b084368e4f3e4c98194fc108ce0aaa60b6820f (diff)
downloadbuildroot-6d266356e5ba1e7a1dd515e23d8f45ac8ff8020e.tar.gz
buildroot-6d266356e5ba1e7a1dd515e23d8f45ac8ff8020e.tar.bz2
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 <bernd.kuhls@t-online.de> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/patch')
-rw-r--r--package/patch/patch.mk7
1 files changed, 7 insertions, 0 deletions
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))