This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
lsts_glued/rules/glibc/headers.bash

27 lines
763 B
Bash
Raw Permalink Normal View History

2015-02-05 13:45:19 +00:00
source $pkg_common
requires=\
(
'gcc/cross_stage1'
'linux-headers/cross'
)
host_install()
{
cat >> configparms << EOF
install-bootstrap-headers=yes
cross-compiling=yes
install_root="$cfg_dir_toolchain_sysroot"
EOF
$cmd_make \
install_root="$cfg_dir_toolchain_sysroot" \
install-bootstrap-headers=yes install-headers &&
$cmd_mkdir "$cfg_dir_toolchain_sysroot/usr/lib" &&
$cmd_make csu/subdir_lib &&
cp csu/crt1.o csu/crti.o csu/crtn.o "$cfg_dir_toolchain_sysroot/usr/lib" &&
$cmd_target_cc -nostdlib -nostartfiles -shared -x c /dev/null -o "$cfg_dir_toolchain_sysroot/usr/lib/libc.so"
$cmd_mkdir "$cfg_dir_toolchain_sysroot/usr/include/gnu" &&
touch "$cfg_dir_toolchain_sysroot/usr/include/gnu/stubs.h"
}