decompress_package ${EGLIBC_PORTS} $(pwd) 1> /dev/null
- # Disable linking to libgcc_eh:
+ # libgcc_eh.a does not get built if building GCC with `--disable-shared'.
+ # The objects that would otherwise end up in libgcc_eh.a end up in libgcc.a
+ # instead. Unfortunately, Glibc insists upon linking with `-lgcc_eh'.
+ # Therefore, disable linking to libgcc_eh:
sed -e 's/-lgcc_eh//g' -i Makeconfig
}