zlib-ng: cross build
This commit is contained in:
parent
8899af9d0e
commit
1f6f51b9be
1 changed files with 16 additions and 3 deletions
|
@ -10,12 +10,21 @@ fetch() {
|
|||
build() {
|
||||
cd $pkgname-$pkgver
|
||||
cd build
|
||||
|
||||
PREFIX=/usr
|
||||
|
||||
[ -z "$WITH_CROSS" ] || cmake_extra_flags="-DCMAKE_CROSSCOMPILING=ON \
|
||||
-DCMAKE_SYSROOT=$WITH_CROSS_DIR \
|
||||
-DCMAKE_C_COMPILER_TARGET=$ARCH-linux-musl"
|
||||
[ -z "$FOR_CROSS" ] || PREFIX=$FOR_CROSS_DIR
|
||||
|
||||
cmake -G Ninja ../ \
|
||||
-DCMAKE_BUILD_TYPE=Release \
|
||||
-DCMAKE_INSTALL_PREFIX=/usr \
|
||||
-DCMAKE_INSTALL_PREFIX=$PREFIX \
|
||||
-DCMAKE_INSTALL_LIBDIR=lib \
|
||||
-DZLIB_COMPAT=ON
|
||||
|
||||
-DZLIB_COMPAT=ON \
|
||||
$cmake_extra_flags
|
||||
|
||||
samu
|
||||
}
|
||||
|
||||
|
@ -29,3 +38,7 @@ license() {
|
|||
cd $pkgname-$pkgver
|
||||
cat LICENSE.md
|
||||
}
|
||||
|
||||
backup() {
|
||||
return
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue