aboutsummaryrefslogtreecommitdiffstats
path: root/package/network/utils/iproute2/patches/150-keep_libcap_optional.patch
blob: 8cd4e4ae6aa8e3d35c5bd8f22f65c9dba8ff0e14 (plain)
1
2
3
4
5
6
7
8
9
10
11
--- a/configure
+++ b/configure
@@ -425,7 +425,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"