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/gdb/cross.bash

33 lines
667 B
Bash
Raw Normal View History

source $pkg_common
2013-07-13 17:19:22 +01:00
requires=\
(
'ncurses/host'
)
configure()
{
cd "$pkg_build_dir" &&
2015-07-24 15:21:14 +01:00
LDFLAGS="-static -L$cfg_dir_toolchain/lib" \
CFLAGS="-I$cfg_dir_toolchain/include" \
"../gdb-$version/configure" \
2013-07-13 17:19:22 +01:00
--prefix="$cfg_dir_toolchain" \
--target="$cfg_target_canonical" \
--host="$cfg_host_canonical" \
--build="$cfg_host_canonical" \
2015-02-05 13:44:03 +00:00
--with-build-sysroot="$cfg_dir_toolchain_sysroot" \
2013-07-13 17:19:22 +01:00
--with-sysroot="$cfg_dir_toolchain_sysroot" \
--disable-nls \
--disable-tui
}
build()
{
$cmd_make -C "$pkg_build_dir"
}
host_install()
{
$cmd_make -C "$pkg_build_dir" install
}