h69k/package/network/utils/iproute2/patches/150-keep_libcap_optional.patch
2024-09-29 22:35:28 +08:00

12 lines
231 B
Diff

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