From: Roy Marples Date: Fri, 11 Mar 2016 20:46:54 +0000 (+0000) Subject: Fix configure when >1 ld-elf.so.N X-Git-Tag: v6.10.2~26 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0af58eb2887a25a58062a88fd481ae45c6409994;p=thirdparty%2Fdhcpcd.git Fix configure when >1 ld-elf.so.N --- diff --git a/configure b/configure index 23892e74..9c7de89d 100755 --- a/configure +++ b/configure @@ -309,7 +309,11 @@ fi case "$OS" in linux*|sunos*|kfreebsd*) ;; *) - if ! [ -x "$LDELF" -o -x /libexec/ld-elf.so.[0-9]* ] && \ + # There might be more than one ... + for LDELFN in /libexec/ld-elf.so.[0-9]*; do + [ -x "$LDELFN" ] && break + done + if ! [ -x "$LDELF" -o -x "$LDELFN" ] && \ [ -z "$PREFIX" -o "$PREFIX" = "/" ] then echo "Forcing a static build for $OS and \$PREFIX of /"