Skip to content
Snippets Groups Projects
Commit 66b43a61 authored by linear's avatar linear :speech_balloon:
Browse files

main/brotli: use sysroot when cross compiling to avoid libtool pulling in host libs

parent b831bd92
No related branches found
No related tags found
1 merge request!24870main/brotli: use sysroot when cross compiling to avoid libtool pulling in host libs
......@@ -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
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment