libXshmfence:update and moved to /usr/lib
[nyanlinux.git] / builders / nyanuuid-0 / builder-target.sh
blobb7511e47129b72e6911be720cb55335eece20960
1 src_name=nyanuuid
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
7 rm -Rf $pkg_dir
8 mkdir -p $pkgs_dir_root
9 cp -r $src_dir $pkg_dir
11 cd $pkg_dir
13 git checkout --force $git_commit
14 git reset --hard
16 build_dir=$builds_dir_root/$pkg_name-$target_gnu_triple
17 rm -Rf $build_dir
18 mkdir -p $build_dir
19 cd $build_dir
21 OLD_PATH=$PATH
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
26 $pkg_dir/make \
27 --prefix=/nyan/nyanuuid/0 \
28 --disable-dynamic \
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
36 # cleanup and tidying
37 $target_gnu_triple-strip -s $target_sysroot/nyan/$src_name/0/bin/uuidgen
39 rm -Rf $build_dir $pkg_dir