This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: The canadian cross build is broken


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]