diff options
Diffstat (limited to 'core/openssl/PKGBUILD')
-rw-r--r-- | core/openssl/PKGBUILD | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/core/openssl/PKGBUILD b/core/openssl/PKGBUILD index 445a9e337..ce3bf2728 100644 --- a/core/openssl/PKGBUILD +++ b/core/openssl/PKGBUILD @@ -8,7 +8,7 @@ pkgver=${_ver/[a-z]/.${_ver//[0-9.]/}} #pkgver=$_ver pkgrel=3 pkgdesc='The Open Source toolkit for Secure Sockets Layer and Transport Layer Security' -arch=('i686' 'x86_64') +arch=('i686' 'x86_64' 'mips64el') url='https://www.openssl.org' license=('custom:BSD') depends=('perl') @@ -27,19 +27,21 @@ md5sums=('66bf6f10f060d561929de96f9dfe5b8c' build() { cd $srcdir/$pkgname-$_ver - if [ "${CARCH}" == 'x86_64' ]; then - openssltarget='linux-x86_64' - optflags='enable-ec_nistp_64_gcc_128' - elif [ "${CARCH}" == 'i686' ]; then - openssltarget='linux-elf' - optflags='' - fi - # remove rpath: http://bugs.archlinux.org/task/14367 patch -p0 -i $srcdir/no-rpath.patch # set ca dir to /etc/ssl by default patch -p0 -i $srcdir/ca-dir.patch + case "${CARCH}" in + 'x86_64') + openssltarget='linux-x86_64' + optflags='enable-ec_nistp_64_gcc_128' ;; + 'i686') + openssltarget='linux-elf' ;; + 'mips64el') + openssltarget='linux-generic32' ;; + esac + # mark stack as non-executable: http://bugs.archlinux.org/task/12434 ./Configure --prefix=/usr --openssldir=/etc/ssl --libdir=lib \ shared zlib enable-md2 ${optflags} \ |