summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2016-03-11 20:46:54 +0000
committerRoy Marples <roy@marples.name>2016-03-11 20:46:54 +0000
commit0af58eb2887a25a58062a88fd481ae45c6409994 (patch)
tree5c7b9ca4cbf8c1f5f3907472bc96fe9b888b1216 /configure
parent66cb5dbc7ee2a8e399c4a44d4e095a53c1ff24d0 (diff)
downloaddhcpcd-0af58eb2887a25a58062a88fd481ae45c6409994.tar.xz
Fix configure when >1 ld-elf.so.N
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure6
1 files changed, 5 insertions, 1 deletions
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 /"