This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
lsts_glued/rules/bzip2/host.bash

24 lines
484 B
Bash

source $pkg_common
build()
{
export CFLAGS="${CFLAGS} -fPIC"
# Static library.
$cmd_make \
bzip2 &&
# Shared library.
$cmd_make \
-f Makefile-libbz2_so &&
ln -fs libbz2.so.$version libbz2.so.1
}
host_install()
{
$cmd_mkdir "${cfg_dir_toolchain}/include"
$cmd_mkdir "${cfg_dir_toolchain}/lib"
$cmd_cp libbz2.a "${cfg_dir_toolchain}/lib"
$cmd_cp libbz2.so* "${cfg_dir_toolchain}/lib"
$cmd_cp bzlib.h "${cfg_dir_toolchain}/include"
}