# EGLIBC-&eglibc-version; 32 Bit Libraries

## Installation of EGLIBC

The powerpc (32) architecture is expected to fail the check-textrel tests because it cannot protect some elf segments in shared libraries from being executable and writable. Using the default 64-bit compiler means the test runs as `__powerpc64__` which is not expected to fail. The problem only exists in 32-bit, the 64-bit ABI allows the segments to be protected.

Other distributions alter gcc to default to 32-bits and so do not see this failure. Whether they then test correctly on 64-bit libraries is not our problem.

Force the test to use the 32-bit compiler with the following `sed` :

    sed -i "s/\(^check-textrel-CFLAGS = \)/\1 ${BUILD32} /" elf/Makefile

    CC="gcc ${BUILD32}" CXX="g++ ${BUILD32}" \
        ../eglibc-&eglibc-version;/configure --prefix=/usr \
        --disable-profile --enable-add-ons --enable-kernel=2.6.0 \
        --libexecdir=/usr/lib/eglibc --host=${CLFS_TARGET32}

Details on this package are located in contents-eglibc