From f9839feeabd97040e3b0a5f264e87908b19b833c Mon Sep 17 00:00:00 2001 From: Ella Stanforth Date: Fri, 22 Apr 2022 09:59:57 +0000 Subject: [PATCH] openssl: fix for cross --- base/openssl/build.sh | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/base/openssl/build.sh b/base/openssl/build.sh index dc343cc..f67d647 100644 --- a/base/openssl/build.sh +++ b/base/openssl/build.sh @@ -8,10 +8,13 @@ fetch() { tar -xf $pkgname-$pkgver.tar.xz } +PREFIX=/usr +[ -z "$FOR_CROSS" ] || PREFIX=$FOR_CROSS_DIR + build() { cd $pkgname-$pkgver ./Configure \ - --prefix=/usr \ + --prefix=$PREFIX \ --openssldir=/etc/ssl \ --libdir=lib \ linux-generic64 \ @@ -28,8 +31,12 @@ build() { package() { cd $pkgname-$pkgver make install_sw DESTDIR=$pkgdir - install -d $pkgdir/usr/sbin - install -Dm755 ../../update-ca.sh $pkgdir/usr/sbin/update-ca + if [ -z "$FOR_CROSS" ]; then + install -d $pkgdir/usr/sbin + install -Dm755 ../../update-ca.sh $pkgdir/usr/sbin/update-ca + else + rm -rf $pkgdir/$PREFIX/bin + fi } backup() {