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