# Recipe for version 2.5 by Andre Detsch <detsch@gobolinux.org>, on Wed Nov 1 10:17:59 BRST 2006
# by Guilherme Bedin
# 02/12/2003
compile_version=1.8.0
urls=(
    http://ftp.gnu.org/pub/gnu/glibc/glibc-2.5.tar.gz
    http://ftp.gnu.org/pub/gnu/glibc/glibc-ports-2.5.tar.bz2
)
unpack_files=inside_first
recipe_type=configure
needs_build_directory=yes
needs_safe_linking=yes
keep_existing_target=yes
sandbox_options=("--no-sandbox")
configure_options=(
    "--enable-kernel=2.6.18"
    "--with-headers=${linux_headers_path}/include"
#    "--with-headers=${cross_kernel_dir}/include"
    "--disable-profile"
    "--with-tls"
    "--with-__thread"
    "--libexecdir=${target}/lib"
)

install_target="install localedata/install-locales"

environment=(
    CFLAGS=
    CXXFLAGS=
    LDFLAGS=
)

pre_install() {
   ldconfig -C $target/Resources/Defaults/Settings/ld.so.cache
   ldconfig
}
