summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorAndy Polyakov <appro@openssl.org>2011-11-08 14:40:33 +0000
committerAndy Polyakov <appro@openssl.org>2011-11-08 14:40:33 +0000
commitbba391a99a4570d90f9417303dac559ca2e22f6e (patch)
tree0a11c9319bb3161f88f405b3d80fab4dd1e01ec7 /config
parentaf0368458a2dd8cdb6fef0e04e21a29798679388 (diff)
downloadopenssl-new-bba391a99a4570d90f9417303dac559ca2e22f6e.tar.gz
config: KERNEL_BITS envrionment variable to control choice between 32-
and 64-bit Solaris builds.
Diffstat (limited to 'config')
-rwxr-xr-xconfig7
1 files changed, 5 insertions, 2 deletions
diff --git a/config b/config
index 80c1097f07..851a161136 100755
--- a/config
+++ b/config
@@ -678,7 +678,7 @@ case "$GUESSOS" in
sun4[uv]*-*-solaris2)
OUT="solaris-sparcv9-$CC"
ISA64=`(isalist) 2>/dev/null | grep sparcv9`
- if [ "$ISA64" != "" ]; then
+ if [ "$ISA64" != "" -a "$KERNEL_BITS" = "" ]; then
if [ "$CC" = "cc" -a $CCVER -ge 50 ]; then
echo "WARNING! If you wish to build 64-bit library, then you have to"
echo " invoke './Configure solaris64-sparcv9-cc' *manually*."
@@ -708,13 +708,16 @@ case "$GUESSOS" in
fi
fi
fi
+ if [ "$ISA64" != "" -a "$KERNEL_BITS" = "64" ]; then
+ OUT="solaris64-sparcv9-$CC"
+ fi
;;
sun4m-*-solaris2) OUT="solaris-sparcv8-$CC" ;;
sun4d-*-solaris2) OUT="solaris-sparcv8-$CC" ;;
sun4*-*-solaris2) OUT="solaris-sparcv7-$CC" ;;
*86*-*-solaris2)
ISA64=`(isalist) 2>/dev/null | grep amd64`
- if [ "$ISA64" != "" ]; then
+ if [ "$ISA64" != "" -a ${KERNEL_BITS:-64} -eq 64 ]; then
OUT="solaris64-x86_64-$CC"
else
OUT="solaris-x86-$CC"