The canadian cross build is broken

H . J . Lu hjl@lucon.org
Tue Mar 26 13:53:00 GMT 2002


On Tue, Mar 26, 2002 at 04:49:18PM -0500, DJ Delorie wrote:
> 
> > What multiple host frags? I am not sure what you meant by that.
> 
> Oops, nevermind.  I see where you moved that logic to.  You need to
> check for $frag being empty before adding it to $frags though.

Why? Here is the fragment. $frag won't be empty. The default one is
mh-${host_cpu}pic:

if [ "${shared}" = "yes" ]; then
  case "${host}" in
    *-*-cygwin*)        ;;
    alpha*-*-linux*)    frag=mh-elfalphapic ;;
    arm*-*-*)           frag=mh-armpic ;;
    hppa*-*-*)          frag=mh-papic ;;
    i[3456]86-*-*)      frag=mh-x86pic ;;
    mips*-*-linux*)     frag=mh-mipspic ;;
    powerpc*-*-aix*)    ;;
    powerpc*-*-*)       frag=mh-ppcpic ;;
    sparc*-*-*)         frag=mh-sparcpic ;;
    *)                  frag=mh-${host_cpu}pic ;;
  esac
  frags="${frags} ${libiberty_topdir}/config/${frag}"
fi

Later, we check if it exists:

for frag in ${frags}; do
  if [ -f ${frag} ]; then
    echo "Appending ${frag} to xhost-mkfrag"
    echo "# Following fragment copied from ${frag}" >> temp-frag
    cat ${frag} >> temp-frag
  fi
done

before appending it. Did I miss something?



H.J.

H.J.



More information about the Gdb mailing list