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