difos/package/network/utils/iproute2/patches/150-keep_libcap_optional.patch

12 lines
231 B
Diff
Raw Normal View History

--- 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"