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