if [[ "${SMGL_COMPAT_ARCHS[1]}" == "x86_64" || "${SMGL_COMPAT_ARCHS[1]}" == "em64t" ]]
then
  if [[ ! -d $INSTALL_ROOT/lib64 ]] && [[ ! -h $INSTALL_ROOT/lib64 ]]
  then
    ln -sf $INSTALL_ROOT/lib $INSTALL_ROOT/lib64
  fi
fi  &&

mk_source_dir $SOURCE_DIRECTORY &&
cd $SOURCE_DIRECTORY &&

# The bootstrap compiler unpacks as ghc-$BOOT_VERSION-<target platform>, which
# is not the platform name its tarball is published under.
unpack_file 2 &&
mv $SPELL-$BOOT_VERSION-* ghc-bin &&

# Source distributions are shipped already booted: no boot script, no
# mk/build.mk, and the Alex/Happy output is pre-generated.
unpack_file
