Ticket #10808: atlas-no-m32-on-ARM.diff

File atlas-no-m32-on-ARM.diff, 1.1 KB (added by Snark, 9 years ago)

This patch to the atlas in 4.7.1 makes it possible to compile on ARM

  • patches/probe_comp.c

    diff -urN atlas-3.8.3.p16/patches/probe_comp.c atlas-3.8.3.p17/patches/probe_comp.c
    old new  
    534534      sp = (ptrbits == 64) ? "-maix64" : "-maix32";
    535535   else if (arch == IA64Itan2)
    536536      printf("Itanium2 - not setting -m64"); // -m64 is not supported on RHEL 5/Itanium
     537#ifndef __ARM__
    537538   else if (ptrbits == 64)
    538539     sp = "-m64";
    539540   else if (ptrbits == 32)
    540541     sp = "-m32";
     542#endif
    541543   return(sp);
    542544}
    543545char *GetStandardCompName(char *comp)
  • patches/SpewMakeInc.c

    diff -urN atlas-3.8.3.p16/patches/SpewMakeInc.c atlas-3.8.3.p17/patches/SpewMakeInc.c
    old new  
    365365      return(sp);
    366366   else if (OS == OSAIX)
    367367      sp = (ptrbits == 64) ? "-maix64" : "-maix32";
     368#ifndef __ARM__
    368369   else if (ptrbits == 64)
    369370     sp = "-m64";
    370371   else if (ptrbits == 32)
    371372     sp = "-m32";
     373#endif
    372374   return(sp);
    373375}
    374376