summaryrefslogtreecommitdiffstats
path: root/meta/packages/openssl/openssl.inc
diff options
context:
space:
mode:
Diffstat (limited to 'meta/packages/openssl/openssl.inc')
-rw-r--r--meta/packages/openssl/openssl.inc32
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"
7S = "${WORKDIR}/openssl-${PV}" 7S = "${WORKDIR}/openssl-${PV}"
8 8
9AR_append = " r" 9AR_append = " r"
10export CFLAG = "-fPIC -DTHREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -DTERMIO -Wall ${FULL_OPTIMIZATION}" 10CFLAG = "${@base_conditional('SITEINFO_ENDIANESS', 'le', '-DL_ENDIAN', '-DB_ENDIAN', d)} \
11 -DTERMIO ${FULL_OPTIMIZATION} -Wall"
11 12
12# -02 does not work on mipsel: ssh hangs when it tries to read /dev/urandom 13# -02 does not work on mipsel: ssh hangs when it tries to read /dev/urandom
13export CFLAG_mtx-1 := "${@'${CFLAG}'.replace('-O2', '')}" 14CFLAG_mtx-1 := "${@'${CFLAG}'.replace('-O2', '')}"
14export CFLAG_mtx-2 := "${@'${CFLAG}'.replace('-O2', '')}" 15CFLAG_mtx-2 := "${@'${CFLAG}'.replace('-O2', '')}"
15 16
16export DIRS = "crypto ssl apps" 17export DIRS = "crypto ssl apps"
17export EX_LIBS = "-lgcc -ldl" 18export EX_LIBS = "-lgcc -ldl"
@@ -21,15 +22,12 @@ PACKAGES =+ "libcrypto libssl"
21FILES_libcrypto = "${libdir}/libcrypto.so.*" 22FILES_libcrypto = "${libdir}/libcrypto.so.*"
22FILES_libssl = "${libdir}/libssl.so.*" 23FILES_libssl = "${libdir}/libssl.so.*"
23 24
24do_compile () { 25do_configure () {
25 cd util 26 cd util
26 perl perlpath.pl ${bindir} 27 perl perlpath.pl ${bindir}
27 cd .. 28 cd ..
28 ln -sf apps/openssl.pod crypto/crypto.pod ssl/ssl.pod doc/ 29 ln -sf apps/openssl.pod crypto/crypto.pod ssl/ssl.pod doc/
29 30
30 # Additional flag based on target endiness (see siteinfo.bbclass)
31 CFLAG="${CFLAG} ${@base_conditional('SITEINFO_ENDIANESS', 'le', '-DL_ENDIAN', '-DB_ENDIAN', d)}"
32
33 os=${HOST_OS} 31 os=${HOST_OS}
34 if [ "x$os" = "xlinux-uclibc" ]; then 32 if [ "x$os" = "xlinux-uclibc" ]; then
35 os=linux 33 os=linux
@@ -49,27 +47,35 @@ do_compile () {
49 target=debian-sh4 47 target=debian-sh4
50 ;; 48 ;;
51 linux-i486) 49 linux-i486)
52 target=linux-pentium 50 target=debian-i386-i486
53 ;; 51 ;;
54 linux-i586) 52 linux-i586)
55 target=linux-pentium 53 target=debian-i386-i586
56 ;; 54 ;;
57 linux-i686) 55 linux-i686)
58 target=linux-ppro 56 target=debian-i386-i686/cmov
59 ;; 57 ;;
60 linux-powerpc) 58 linux-powerpc)
61 target=linux-ppc 59 target=linux-ppc
62 ;; 60 ;;
61 linux-supersparc)
62 target=linux-sparcv8
63 ;;
64 linux-sparc)
65 target=linux-sparcv8
66 ;;
63 esac 67 esac
68 # inject machine-specific flags
69 sed -i -e "s|^\(\"$target\",\s*\"[^:]\+\):\([^:]\+\)|\1:${CFLAG}|g" Configure
64 perl ./Configure shared --prefix=${prefix} --openssldir=${libdir}/ssl $target 70 perl ./Configure shared --prefix=${prefix} --openssldir=${libdir}/ssl $target
71}
72
73do_compile () {
65 oe_runmake 74 oe_runmake
66} 75}
67 76
68do_stage () { 77do_stage () {
69 install -d ${STAGING_INCDIR}
70 install -d ${STAGING_LIBDIR}/pkgconfig/
71 cp --dereference -R include/openssl ${STAGING_INCDIR}/ 78 cp --dereference -R include/openssl ${STAGING_INCDIR}/
72 cp --dereference openssl.pc ${STAGING_LIBDIR}/pkgconfig/
73 oe_libinstall -a -so libcrypto ${STAGING_LIBDIR} 79 oe_libinstall -a -so libcrypto ${STAGING_LIBDIR}
74 oe_libinstall -a -so libssl ${STAGING_LIBDIR} 80 oe_libinstall -a -so libssl ${STAGING_LIBDIR}
75} 81}