2 git_commit
=80beced99f930cc40550e6bb4a6d9e99af55e2e1
3 git_url0
=git
://github.com
/sylware
/$src_name
5 pkg_dir
=$pkgs_dir_root/$pkg_name
6 src_dir
=$src_dir_root/$src_name
8 mkdir
-p $pkgs_dir_root
9 cp -r $src_dir $pkg_dir
13 git checkout
--force $git_commit
16 build_dir
=$builds_dir_root/$pkg_name-$target_gnu_triple
22 export PATH
=$cross_toolchain_dir_root/bin
:$PATH
24 # we cheat, we cross-build a dynamic binary using the static lib
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
27 --prefix=/nyan
/nyanuuid
/0 \
29 "--bin-cc=$target_gnu_triple-gcc -O2 -pipe -fPIC -c" \
30 "--bin-ccld=$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" \
31 "--libuuid-cc=$target_gnu_triple-gcc -O2 -pipe -fPIC -c" \
32 "--libuuid-ar=$target_gnu_triple-ar rcs"
34 cp -r $build_dir/fake_root
/* $target_sysroot
37 $target_gnu_triple-strip -s $target_sysroot/nyan
/$src_name/0/bin
/uuidgen
39 rm -Rf $build_dir $pkg_dir