summaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorAndy Polyakov <appro@openssl.org>2005-05-31 09:32:00 +0000
committerAndy Polyakov <appro@openssl.org>2005-05-31 09:32:00 +0000
commit053677d1243d72159c66a425224366574f74f1ab (patch)
tree0e8aad0deae67d6e98b6f03cca15a502f77eafa9 /config
parent804072f0145e160d21aef31cf240e70f80d9dc1c (diff)
Improve ELF detection procedure on BSD targets.
PR: 1079
Diffstat (limited to 'config')
-rwxr-xr-xconfig4
1 files changed, 3 insertions, 1 deletions
diff --git a/config b/config
index 3b4b0f619f..068d54b870 100755
--- a/config
+++ b/config
@@ -660,7 +660,9 @@ case "$GUESSOS" in
sparc64-*-*bsd*) OUT="BSD-sparc64" ;;
ia64-*-*bsd*) OUT="BSD-ia64" ;;
amd64-*-*bsd*) OUT="BSD-x86_64" ;;
- *86*-*-*bsd*) case "`(file -L /usr/lib/libc.so.*) 2>/dev/null`" in
+ *86*-*-*bsd*) # assume highest libc.so.* version is the one in effect
+ libc=`(ls /usr/lib/libc.so.* /lib/libc.so.* | tail -1) 2>/dev/null`
+ case "`(file $libc) 2>/dev/null`" in
*ELF*) OUT="BSD-x86-elf" ;;
*) OUT="BSD-x86"; options="$options no-sse2" ;;
esac ;;