libXfixes:moved to "simplified /usr"
[nyanlinux.git] / builders / bootstrap / nyanglibc / builder.sh
blob90cf159e89fdeb6c24295f13c00639ed7bb5129c
1 . $nyan_root/conf.bootstrap.sh
3 git_commit=e7d409cf324276b1799af358a0c882d5fefeacab
4 src_name=nyanglibc
5 url0=https://repo.or.cz/nyanglibc.git
7 src_dir=$pkgs_dir_root/$src_name
8 rm -Rf $src_dir
9 mkdir -p $pkgs_dir_root
10 cp -aH $src_dir_root/$src_name $pkgs_dir_root
11 cd $pkgs_dir_root/$src_name
13 if test "x$git_commit" != "x"; then
14 git checkout $git_commit
15 git reset --hard
18 # assemble/link
19 sed -E -e '5 c\
20 conf_prefix=/nyan/glibc/0' -i ./make_x86_64_libs.sh
21 sed -E -e '8,11 d' -i ./make_x86_64_libs.sh
22 sed -E -e "7 a\
23 as=\"$bootstrap_target_cross_toolchain/bin/$bootstrap_target_gnu_triple-as\"\n\
24 ld=\"$bootstrap_target_cross_toolchain/bin/$bootstrap_target_gnu_triple-ld\"\n\
25 ar=\"$bootstrap_target_cross_toolchain/bin/$bootstrap_target_gnu_triple-ar\"\n\
26 cpp=\"$bootstrap_build_cpp\"" -i ./make_x86_64_libs.sh
27 # install runtime
28 sed -E -e '5,6 d' -i ./install_runtime.sh
29 sed -E -e "4 a\
30 destdir=$bootstrap_target_sysroot\n\
31 prefix=/nyan/glibc/0" -i ./install_runtime.sh
32 # install dev
33 sed -E -e '5,6 d' -i ./install_dev.sh
34 sed -E -e "4 a\
35 destdir=$bootstrap_target_sysroot\n\
36 prefix=/nyan/glibc/0" -i ./install_dev.sh
38 build_dir=$builds_dir_root/$src_name
39 rm -Rf $build_dir
40 mkdir -p $build_dir
41 cd $build_dir
43 $src_dir/make_x86_64_libs.sh
44 $src_dir/install_runtime.sh
45 $src_dir/install_dev.sh
47 rm -Rf $src_dir $build_dir
49 # x86_64 ABI standard elf loader name and location
50 cd $bootstrap_target_sysroot
51 mkdir -p ./lib64
52 cd ./lib64
53 ln -sTf /nyan/glibc/current/lib/ld-linux-x86-64.so.2 ld-linux-x86-64.so.2
54 cd $bootstrap_target_sysroot/nyan/glibc
55 ln -sTf 0 current