1 Fix support for ARM endianness, otherwise it gives the error
2 "unknown CPU endianness"
4 Signed-off-by: Pedro Aguilar <paguilar@paguilar.org>
6 diff -Nau guile-2.0.11.orig/module/system/base/target.scm guile-2.0.11/module/system/base/target.scm
7 --- guile-2.0.11.orig/module/system/base/target.scm 2013-02-28 09:42:45.000000000 +0100
8 +++ guile-2.0.11/module/system/base/target.scm 2014-11-03 23:05:01.789338997 +0100
10 ((member cpu '("sparc" "sparc64" "powerpc" "powerpc64" "spu"
13 - ((string-match "^arm.*el" cpu)
14 + ((string-match "^arm.*el" cpu)
15 + (endianness little))
16 + ((string-match "^arm.*eb" cpu)
18 + ((string-prefix? "arm" cpu) ;ARMs are LE by default
19 + (endianness little))
20 + ((string-match "^aarch64.*be" cpu)
22 + ((string=? "aarch64" cpu)
25 (error "unknown CPU endianness" cpu)))))