+ export BUILD_CC="gcc"
+ export CC="${CLFS_TARGET}-gcc ${CLFS_BUILDFLAGS}"
+ export AR="${CLFS_TARGET}-ar"
+ export RANLIB="${CLFS_TARGET}-ranlib"
+
+ CONFIGURE_OPTS="\
+ --prefix=/tools \
+ --host=${CLFS_TARGET} \
+ --build=${CLFS_HOST} \
+ --disable-profile \
+ --enable-add-ons \
+ --with-tls \
+ --enable-kernel=$(get_pkg_ver3 ${KERNEL}) \
+ --with-__thread \
+ --with-binutils=/cross-tools/bin \
+ --with-headers=/tools/include"
+
+ cd ${LFS_TMP}/${PACKAGE}
+
+ decompress_package ${EGLIBC_PORTS} $(pwd) 1> /dev/null
+
+ # Disable linking to libgcc_eh:
+ sed -e 's/-lgcc_eh//g' -i Makeconfig