diff options
author | Alin Nastac <alin.nastac@gmail.com> | 2019-07-01 10:57:26 +0200 |
---|---|---|
committer | Hans Dedecker <dedeckeh@gmail.com> | 2019-08-18 14:44:10 +0200 |
commit | a6da3f9ef746101b84a6f530f5a40de28341b69a (patch) | |
tree | c0e318f903b9643dc913c52677b11755be3eefec /package/network/utils/iproute2/patches/150-keep_libcap_optional.patch | |
parent | eff6e106044af06c022ca8689d08b4ba8b0ee5c0 (diff) | |
download | upstream-a6da3f9ef746101b84a6f530f5a40de28341b69a.tar.gz upstream-a6da3f9ef746101b84a6f530f5a40de28341b69a.tar.bz2 upstream-a6da3f9ef746101b84a6f530f5a40de28341b69a.zip |
iproute2: add libcap support, enabled in ip-full
Preserve optionality of libcap by having configuration script follow the
HAVE_CAP environment variable, used similarly to the HAVE_ELF variable.
Signed-off-by: Alin Nastac <alin.nastac@gmail.com>
Signed-off-by: Hans Dedecker <dedeckeh@gmail.com> [PKG_RELEASE increase/refresh patches]
Diffstat (limited to 'package/network/utils/iproute2/patches/150-keep_libcap_optional.patch')
-rw-r--r-- | package/network/utils/iproute2/patches/150-keep_libcap_optional.patch | 11 |
1 files changed, 11 insertions, 0 deletions
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 index 0000000000..05336a737c --- /dev/null +++ b/package/network/utils/iproute2/patches/150-keep_libcap_optional.patch @@ -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" + |