2 git_commit
=1da06aa4eed14fcc1f7dd585a386391600e879da
3 git_url0
=git
://github.com
/sylware
/$src_name
5 gnulib_git_commit
=f5f067f896b71a96c882b96c35759aeea2fa3072
6 gnulib_git_url0
=git
://git.savannah.gnu.org
/gnulib.git
8 pkg_dir
=$pkgs_dir_root/$pkg_name
9 src_dir
=$src_dir_root/$src_name
11 mkdir
-p $pkgs_dir_root
12 cp -r $src_dir $pkg_dir
14 #-------------------------------------------------------------------------------
16 # we do trust the version of the gnulib
17 git checkout
--force $git_commit
20 # from configmake module, it's specific to m4 binary
21 $src_dir_root/gnulib
/gnulib-tool
--dir=$pkg_dir --source-base=gnulib
--m4-base=m
4/gnulib
--import \
44 #-------------------------------------------------------------------------------
46 build_dir
=$builds_dir_root/$pkg_name-$target_gnu_triple
52 export PATH
=$cross_toolchain_dir_root/bin
:$PATH
54 # at link time, the only way to tell gnu ld where to look for shared lib dependencies is to pass the -rpath-link option
55 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"
56 export 'CFLAGS=-O2 -pipe -fPIC'
59 --build=$build_gnu_triple \
60 --host=$target_gnu_triple \
61 --prefix=/nyan
/nyanbison
/0
63 # parallel build breaks code generation
65 make install DESTDIR
=$target_sysroot
68 $target_gnu_triple-strip -s $target_sysroot/nyan
/$src_name/0/bin
/bison
70 rm -Rf $build_dir $pkg_dir