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 21:59:30 +0000 (23:59 +0200)
Submitted by: Bryan Drewery
PR: 3075
(cherry picked from commit c256e69d3f3acd0794ae9c1f353f4093bd4c8878)

config

diff --git a/config b/config
index 9d1e36d99fa75ccab46a688e15a9df745474c9f0..d392867859be9fd3ea69886516132f4a5d4703df 100755 (executable)
--- a/config
+++ b/config
@@ -756,7 +756,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" ;;