3 network_archive_name
=$src_name-$version.
tar.gz
4 archive_name
=$src_name-$version.
tar
5 # WARNING, it's a bare tar archive, not a gzipped tar archive
6 url0
=http
://rpm5.org
/files
/popt
/$network_archive_name
9 src_dir
=$src_dir_root/$src_name-$version
13 cp -f $network_archive_name $archive_name
17 build_dir
=$builds_dir_root/$pkg_name-$version-$target_gnu_triple
23 export PATH
=$cross_toolchain_dir_root/bin
:$PATH
25 # at link time, the only way to tell gnu ld where to look for shared lib dependencies is to pass the -rpath-link option
26 export "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"
27 export 'CFLAGS=-O2 -pipe -fPIC'
29 --build=$build_gnu_triple \
30 --host=$target_gnu_triple \
31 --prefix=/nyan
/popt
/0 \
38 make install DESTDIR
=$target_sysroot
41 rm -Rf $target_sysroot/nyan
/$src_name/0/share
42 rm -Rf $target_sysroot/nyan
/$src_name/0/lib
/*.la || true
44 rm -Rf $build_dir $src_dir