mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-28 13:16:41 +00:00
zlib: use cmake for building zlib library
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
parent
d223095bc9
commit
3ba6ca9586
@ -23,8 +23,23 @@
|
|||||||
. config/options $1
|
. config/options $1
|
||||||
|
|
||||||
cd $PKG_BUILD
|
cd $PKG_BUILD
|
||||||
./configure --prefix=/usr --shared
|
rm -rf ./zconf.h # as requested from zlib cmake config
|
||||||
|
mkdir -p .build-shared && cd .build-shared
|
||||||
|
cmake -DCMAKE_TOOLCHAIN_FILE=$CMAKE_CONF \
|
||||||
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
||||||
|
-DBUILD_SHARED_LIBS=on \
|
||||||
|
..
|
||||||
|
|
||||||
make
|
make
|
||||||
|
|
||||||
$MAKEINSTALL
|
$MAKEINSTALL
|
||||||
|
|
||||||
|
# build static library too, because we need this for plymouth-lite
|
||||||
|
cd ..
|
||||||
|
mkdir -p .build-static && cd .build-static
|
||||||
|
cmake -DCMAKE_TOOLCHAIN_FILE=$CMAKE_CONF \
|
||||||
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
||||||
|
-DBUILD_SHARED_LIBS=off \
|
||||||
|
..
|
||||||
|
|
||||||
|
make
|
||||||
|
cp libz.a $SYSROOT_PREFIX/usr/lib
|
@ -23,4 +23,4 @@
|
|||||||
. config/options $1
|
. config/options $1
|
||||||
|
|
||||||
mkdir -p $INSTALL/usr/lib
|
mkdir -p $INSTALL/usr/lib
|
||||||
cp -R $PKG_BUILD/*.so* $INSTALL/usr/lib
|
cp -R $PKG_BUILD/.build-shared/*.so* $INSTALL/usr/lib
|
||||||
|
Loading…
x
Reference in New Issue
Block a user