3 archive_name
=$src_name-$version.
tar.gz
4 url0
=http
://download.savannah.gnu.org
/releases
/lzip
/$src_name/$archive_name
6 src_dir
=$src_dir_root/$src_name-$version
8 rm -Rf $src_name-$version
11 build_dir
=$builds_dir_root/$pkg_name-$version-$target_gnu_triple
17 export PATH
=$cross_toolchain_dir_root/bin
:$PATH
19 # at link time, the only way to tell gnu ld where to look for shared lib dependencies is to pass the -rpath-link option
21 --prefix=/nyan
/clzip
/0 \
22 "CC=$target_gnu_triple-gcc -B$target_sysroot/nyan/glibc/current/lib -L$target_sysroot/nyan/glibc/current/lib -Wl,-rpath-link,$target_sysroot/nyan/glibc/current/lib -static-libgcc" \
23 'CFLAGS=-O2 -pipe -fPIC'
26 make install-as-lzip DESTDIR
=$target_sysroot
29 rm -Rf $target_sysroot/nyan
/$src_name/0/share
30 $target_gnu_triple-strip -s $target_sysroot/nyan
/$src_name/0/bin
/$src_name
32 rm -Rf $build_dir $src_dir