diff options
author | Jamie Lenehan <lenehan@twibble.org> | 2006-11-16 03:25:10 +0000 |
---|---|---|
committer | Jamie Lenehan <lenehan@twibble.org> | 2006-11-16 03:25:10 +0000 |
commit | 6f96455df32a8577c7ad731b6bc783833390bd11 (patch) | |
tree | c41ee04cf10b5076d64cc1dc2a5a871ef7f856d6 /packages/openssl/openssl.inc | |
parent | 2d49a466e65abe021cd14ec349a5c10a9fba2b69 (diff) |
openssl: Use the new siteinfo stuff to determine the endianess and set the
appropriate flag rather then manually processing the site file contents to
do this.
Diffstat (limited to 'packages/openssl/openssl.inc')
-rw-r--r-- | packages/openssl/openssl.inc | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/packages/openssl/openssl.inc b/packages/openssl/openssl.inc index dc734d93a8..e7e3b37e3c 100644 --- a/packages/openssl/openssl.inc +++ b/packages/openssl/openssl.inc @@ -27,15 +27,8 @@ do_compile () { cd .. ln -sf apps/openssl.pod crypto/crypto.pod ssl/ssl.pod doc/ - # endianness fun.. whee - . ${CONFIG_SITE} - if [ "x$ac_cv_c_bigendian" = "xyes" -o "x$ac_cv_c_littleendian" = "xno" ]; then - CFLAG="${CFLAG} -DB_ENDIAN" - elif [ "x$ac_cv_c_littleendian" = "xyes" -o "x$ac_cv_c_bigendian" = "xno" ]; then - CFLAG="${CFLAG} -DL_ENDIAN" - else - oefatal do_configure cannot determine endianess - fi + # Additional flag based on target endiness (see siteinfo.bbclass) + CFLAG="${CFLAG} ${@base_conditional('SITEINFO_ENDIANESS', 'le', '-DL_ENDIAN', '-DB_ENDIAN', d)}" os=${HOST_OS} if [ "x$os" = "xlinux-uclibc" ]; then |