All pastes #9232 Raw Edit

Stuff

public text v1 · immutable
#9232 ·published 2005-04-10 06:20 UTC
rendered paste body
    export CFLAGS="-g ${CFLAGS}" 
    # Headers
    mkdir -p $PKG/usr/include
    cp -r linux-libc-headers-2.6.11.2/include/linux $PKG/usr/include/linux
    cp -r linux-libc-headers-2.6.11.2/include/asm-i386 $PKG/usr/include/asm
    find $PKG -type d -exec chmod 755 {} \;
    find $PKG -type f -exec chmod 644 {} \;

    # Library
    patch -d $name-$version -p1 < $name-$version.patch
    mkdir build
    cd build
    ../$name-$version/configure --prefix=/usr \
                                         --libexecdir=/usr/lib \
                                         --with-headers=$PKG/usr/include \
                                         --with-tls \
                                         --enable-kernel=2.6.11 \
                                         --enable-add-ons=nptl \
                                         --disable-profile \
                                         --without-gd
    make PARALLELMFLAGS=-j8
    make check
    make install_root=$PKG install
    make install_root=$PKG localedata/install-locales
    cp ../{hosts,resolv.conf,nsswitch.conf,host.conf,ld.so.conf} $PKG/etc
    ln -sf ../usr/share/zoneinfo/UTC $PKG/etc/localtime
    rm -rf $PKG/usr/share/locale