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/common.bash

63 lines
1.4 KiB
Bash
Raw Normal View History

2015-02-05 13:45:19 +00:00
version=\
(
2017-06-05 14:31:46 +01:00
'2.24'
2015-02-05 13:45:19 +00:00
)
url=\
(
"http://ftp.gnu.org/pub/gnu/glibc/glibc-$version.tar.xz"
)
md5=\
(
2017-06-05 14:31:46 +01:00
'97dc5517f92016f3d70d83e3162ad318'
2015-02-05 13:45:19 +00:00
)
maintainer=\
(
'Ricardo Martins <rasm@fe.up.pt>'
)
build_dir=$pkg_var
post_unpack()
{
patches=$(ls "$pkg_dir"/patches/*.patch)
cd ../glibc-$version
if [ -n "$patches" ]; then
cat $patches | patch -p1
fi
}
configure()
{
export libc_cv_slibdir='/lib'
BUILD_CC=$cmd_host_cc \
AR="$cfg_dir_toolchain/bin/$cfg_target_canonical-ar" \
RANLIB="$cfg_dir_toolchain/bin/$cfg_target_canonical-ranlib" \
CC="$cfg_dir_toolchain/bin/$cfg_target_canonical-gcc" \
CXX="$cfg_dir_toolchain/bin/$cfg_target_canonical-g++" \
CFLAGS=$cfg_target_gcc_flags \
"../glibc-$version/configure" \
$cfg_target_glibc_configure_flags \
--prefix=/usr \
--with-headers="$cfg_dir_toolchain_sysroot/usr/include" \
--with-build-sysroot="$cfg_dir_toolchain_sysroot" \
--with-sysroot="$cfg_dir_toolchain_sysroot" \
--build="$cfg_host_canonical" \
--host="$cfg_target_canonical" \
--disable-multilib \
--disable-profile \
--without-gd \
--without-cvs \
--enable-add-ons \
--with-tls \
--enable-kernel=2.6.32 \
--disable-nls \
2015-02-08 13:31:42 +00:00
--enable-static-nss \
2015-02-08 19:32:41 +00:00
--disable-werror \
--enable-obsolete-rpc \
--enable-bind-now
2015-02-05 13:45:19 +00:00
}