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