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