config: fix executable format detection on latest FreeBSD.
authorAndy Polyakov <appro@openssl.org>
Sun, 30 Jun 2013 21:55:55 +0000 (23:55 +0200)
committerAndy Polyakov <appro@openssl.org>
Sun, 30 Jun 2013 22:00:20 +0000 (00:00 +0200)
Submitted by: Bryan Drewery
PR: 3075
(cherry picked from commit c256e69d3f3acd0794ae9c1f353f4093bd4c8878)

config

diff --git a/config b/config
index 88b9bc69da4c71ba6056e0e904a19bd14f5a0101..41fa2a6b8296d9b6b4cccfd2fd34494b7d0634f6 100755 (executable)
--- a/config
+++ b/config
@@ -739,7 +739,7 @@ case "$GUESSOS" in
                            libc=/usr/lib/libc.so
                        else                                    # OpenBSD
                            # ld searches for highest libc.so.* and so do we
-                           libc=`(ls /usr/lib/libc.so.* | tail -1) 2>/dev/null`
+                           libc=`(ls /usr/lib/libc.so.* /lib/libc.so.* | tail -1) 2>/dev/null`
                        fi
                        case "`(file -L $libc) 2>/dev/null`" in
                        *ELF*)  OUT="BSD-x86-elf" ;;