aboutsummaryrefslogtreecommitdiffstats
path: root/package/network/utils/iproute2/patches/145-keep_libelf_optional.patch
blob: d25c719f8e2a3a98e8a8c4f1e6353a5a00c7a35d (plain)
1
2
3
4
5
6
7
8
9
10
11
--- a/configure
+++ b/configure
@@ -230,7 +230,7 @@ EOF
 
 check_elf()
 {
-    if ${PKG_CONFIG} libelf --exists; then
+    if [ "${HAVE_ELF}" = "y" ] && ${PKG_CONFIG} libelf --exists; then
 	echo "HAVE_ELF:=y" >>$CONFIG
 	echo "yes"