iproute2: add libcap support, enabled in ip-full
[openwrt/staging/chunkeey.git] / package / network / utils / iproute2 / patches / 150-keep_libcap_optional.patch
diff --git a/package/network/utils/iproute2/patches/150-keep_libcap_optional.patch b/package/network/utils/iproute2/patches/150-keep_libcap_optional.patch
new file mode 100644 (file)
index 0000000..05336a7
--- /dev/null
@@ -0,0 +1,11 @@
+--- a/configure
++++ b/configure
+@@ -313,7 +313,7 @@ EOF
+ check_cap()
+ {
+-      if ${PKG_CONFIG} libcap --exists; then
++      if [ "${HAVE_CAP}" = "y" ] && ${PKG_CONFIG} libcap --exists; then
+               echo "HAVE_CAP:=y" >>$CONFIG
+               echo "yes"