openssl: Use the new siteinfo stuff to determine the endianess and set the
authorJamie Lenehan <lenehan@twibble.org>
Thu, 16 Nov 2006 03:25:10 +0000 (03:25 +0000)
committerJamie Lenehan <lenehan@twibble.org>
Thu, 16 Nov 2006 03:25:10 +0000 (03:25 +0000)
appropriate flag rather then manually processing the site file contents to
do this.

packages/openssl/openssl.inc
packages/openssl/openssl_0.9.7e.bb
packages/openssl/openssl_0.9.7g.bb

index dc734d9..e7e3b37 100644 (file)
@@ -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
index 90d31c6..d9b8d91 100644 (file)
@@ -1,6 +1,6 @@
 require openssl.inc
 
-PR = "r3"
+PR = "r4"
 
 SRC_URI += "file://debian.patch;patch=1 \
             file://armeb.patch;patch=1 \
index 45fcabe..4af1fbf 100644 (file)
@@ -2,7 +2,7 @@ inherit pkgconfig
 
 require openssl.inc
 
-PR = "r1"
+PR = "r2"
 
 SRC_URI += "file://debian.patch;patch=1 \
             file://armeb.patch;patch=1;pnum=0 \