%general-entities; ]> Glibc-&glibc-version; Glibc Installation of Glibc Modify the ldd rewrite script to prevent it from adding lib64 and libx32 to its list of linker search locations: sed -i '/RTLDLIST/d' sysdeps/unix/sysv/linux/*/ldd-rewrite.sed Configure Glibc to install its libraries into /lib: echo "libc_cv_slibdir=/lib" >> config.cache ../glibc-&glibc-version;/configure \ --prefix=/usr \ --disable-profile \ --enable-kernel=&glibc-kernel-version; \ --libexecdir=/usr/lib/glibc \ --libdir=/usr/lib \ --enable-obsolete-rpc \ --cache-file=config.cache Configuring The Dynamic Loader /etc/ld.so.conf By default, the dynamic loader (/lib/ld-linux-x86-64.so.2) searches through /lib and /usr/lib for dynamic libraries that are needed by programs as they are run. However, if there are libraries in directories other than /lib and /usr/lib, these need to be added to the /etc/ld.so.conf file in order for the dynamic loader to find them. Two directories that are commonly known to contain additional libraries are /usr/local/lib and /opt/lib, so add those directories to the dynamic loader's search path.