diff options
author | linear <dev@linear.network> | 2021-08-31 05:49:46 +0000 |
---|---|---|
committer | linear <dev@linear.network> | 2021-09-01 09:21:23 +0000 |
commit | 66b43a61ccff1b01b28dc46c4ddd17b62d88f9f1 (patch) | |
tree | b99a000cbcb8ad7fc311d94911e319cc7606bb23 | |
parent | b831bd9269187fcb92fa27112899a206dcfdc45c (diff) |
main/brotli: use sysroot when cross compiling to avoid libtool pulling in host libs
-rw-r--r-- | main/brotli/APKBUILD | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/main/brotli/APKBUILD b/main/brotli/APKBUILD index 45dec65e522..6805d652cde 100644 --- a/main/brotli/APKBUILD +++ b/main/brotli/APKBUILD @@ -24,6 +24,9 @@ source="$pkgname-$pkgver.tar.gz::https://github.com/google/brotli/archive/v$pkgv # 1.0.9-r0: # - CVE-2020-8927 +# use sysroot when cross compiling to avoid libtool pulling in host libs +[ "$CBUILD" != "$CHOST" ] && _cross_configure="--with-sysroot=$CBUILDROOT" + prepare() { default_prepare sed -i 's,/usr/bin/env bash,/bin/sh,' tests/*.sh @@ -34,7 +37,9 @@ build() { ./configure \ --build=$CBUILD \ --host=$CHOST \ + --target=$CTARGET \ --prefix=/usr \ + $_cross_configure \ make } |