abinfo "Installing libiberty header ..."
cp -v "$SRCDIR"/include/libiberty.h "$PKGDIR"/opt/32/include

# Since this is a "native build" i.e. i686 -> i686, there is no triplet prefixed binaries.
# Create them for convinence.
abinfo "Creating symlinks prefixed with triplet ..."
for i in $PKGDIR/opt/32/bin/*; do
	bin=$(basename $i)
	ln -sfv /opt/32/bin/$bin \
		"$PKGDIR"/opt/32/bin/${ARCH_TARGET[$ABHOST]}-$bin
done

# Multilib does not exist in AOSC.
if [ -d "$PKGDIR"/opt/32/${ARCH_TARGET[$ABHOST]} ] ; then
	abinfo "Moving ldscripts into the correct directory ..."
	mv -v "$PKGDIR"/opt/32/${ARCH_TARGET[$ABHOST]}/lib/ldscripts "$PKGDIR"/opt/32/lib/
	rm -v "$PKGDIR"/opt/32/lib/ldscripts/stamp
	abinfo "Removing side effect caused by stage 2 toolchain ..."
	rm -rv "$PKGDIR"/opt/32/${ARCH_TARGET[$ABHOST]}
fi
