diff options
| author | Marcin Juszkiewicz <hrw@openedhand.com> | 2008-05-13 09:20:50 +0000 |
|---|---|---|
| committer | Marcin Juszkiewicz <hrw@openedhand.com> | 2008-05-13 09:20:50 +0000 |
| commit | 6f726d64d748ae35b6abf625d8d620e928e73e20 (patch) | |
| tree | 1c91d83244ae158e7fb2564ad0ba8852483782e0 /meta/packages/openssl/openssl.inc | |
| parent | e14d7dcbeea45e2000b9ec3174d24aa90f786adc (diff) | |
| download | openembedded-core-6f726d64d748ae35b6abf625d8d620e928e73e20.tar.gz openembedded-core-6f726d64d748ae35b6abf625d8d620e928e73e20.tar.bz2 openembedded-core-6f726d64d748ae35b6abf625d8d620e928e73e20.zip | |
openssl: update to 0.9.8g (from OE)
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4464 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta/packages/openssl/openssl.inc')
| -rw-r--r-- | meta/packages/openssl/openssl.inc | 32 |
1 files changed, 19 insertions, 13 deletions
diff --git a/meta/packages/openssl/openssl.inc b/meta/packages/openssl/openssl.inc index c621371574..b77fda9a5b 100644 --- a/meta/packages/openssl/openssl.inc +++ b/meta/packages/openssl/openssl.inc @@ -7,11 +7,12 @@ SRC_URI = "http://www.openssl.org/source/openssl-${PV}.tar.gz" S = "${WORKDIR}/openssl-${PV}" AR_append = " r" -export CFLAG = "-fPIC -DTHREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -DTERMIO -Wall ${FULL_OPTIMIZATION}" +CFLAG = "${@base_conditional('SITEINFO_ENDIANESS', 'le', '-DL_ENDIAN', '-DB_ENDIAN', d)} \ + -DTERMIO ${FULL_OPTIMIZATION} -Wall" # -02 does not work on mipsel: ssh hangs when it tries to read /dev/urandom -export CFLAG_mtx-1 := "${@'${CFLAG}'.replace('-O2', '')}" -export CFLAG_mtx-2 := "${@'${CFLAG}'.replace('-O2', '')}" +CFLAG_mtx-1 := "${@'${CFLAG}'.replace('-O2', '')}" +CFLAG_mtx-2 := "${@'${CFLAG}'.replace('-O2', '')}" export DIRS = "crypto ssl apps" export EX_LIBS = "-lgcc -ldl" @@ -21,15 +22,12 @@ PACKAGES =+ "libcrypto libssl" FILES_libcrypto = "${libdir}/libcrypto.so.*" FILES_libssl = "${libdir}/libssl.so.*" -do_compile () { +do_configure () { cd util perl perlpath.pl ${bindir} cd .. ln -sf apps/openssl.pod crypto/crypto.pod ssl/ssl.pod doc/ - # 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 os=linux @@ -49,27 +47,35 @@ do_compile () { target=debian-sh4 ;; linux-i486) - target=linux-pentium + target=debian-i386-i486 ;; linux-i586) - target=linux-pentium + target=debian-i386-i586 ;; linux-i686) - target=linux-ppro + target=debian-i386-i686/cmov ;; linux-powerpc) target=linux-ppc ;; + linux-supersparc) + target=linux-sparcv8 + ;; + linux-sparc) + target=linux-sparcv8 + ;; esac + # inject machine-specific flags + sed -i -e "s|^\(\"$target\",\s*\"[^:]\+\):\([^:]\+\)|\1:${CFLAG}|g" Configure perl ./Configure shared --prefix=${prefix} --openssldir=${libdir}/ssl $target +} + +do_compile () { oe_runmake } do_stage () { - install -d ${STAGING_INCDIR} - install -d ${STAGING_LIBDIR}/pkgconfig/ cp --dereference -R include/openssl ${STAGING_INCDIR}/ - cp --dereference openssl.pc ${STAGING_LIBDIR}/pkgconfig/ oe_libinstall -a -so libcrypto ${STAGING_LIBDIR} oe_libinstall -a -so libssl ${STAGING_LIBDIR} } |
