# EGLIBC-&eglibc-version;

## Installation of EGLIBC

    CC="gcc ${BUILD64}" ../eglibc-&eglibc-version;/configure --prefix=/usr \
        --disable-profile --enable-kernel=2.6.32 \
        --libexecdir=/usr/lib/eglibc --libdir=/usr/lib \
        --enable-obsolete-rpc --cache-file=config.cache

The install will finish by checking that everything is correctly installed. Unfortunately, it will test for a multilib installation. On PPC64 Pure64 this means it will try to test the non-existent 32-bit loader which has a different name from the 64-bit loader (unlike on other 64-bit architectures). We fool it by creating a symlink to the real loader.

    ln -sv &eglibc-ld-name; /lib/ld.so.1

Now we can remove this symlink. We also need to correct the `/usr/bin/ldd` script - if you look at this, you will see it references not only the 32-bit linker, but also /lib64 where it thinks the 64-bit linker is. The following `sed` will correct this:

    rm -v /lib/ld.so.1
    cp -v /usr/bin/ldd{,.bak}
    sed '/RTLDLIST/s%/ld.so.1 /lib64%%' /usr/bin/ldd.bak >/usr/bin/ldd

Check the script to make sure the sed worked correctly, then delete the backup.

    rm -v /usr/bin/ldd.bak