musl: build broken on Thumb, use ARM mode
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Thu, 31 Mar 2016 19:00:08 +0000 (21:00 +0200)
committerPeter Korsgaard <peter@korsgaard.com>
Fri, 8 Apr 2016 10:08:33 +0000 (12:08 +0200)
commit97fd876f62c3106cbcafa79e5f05b0a8f14c3d9e
tree40681d4bfa6ce5437bb16b501436a0a0c2b2cb96
parent696db774843ec02c10c756a39e4aee6c29de7f78
musl: build broken on Thumb, use ARM mode

Building the musl C library on Thumb (Thumb1, not Thumb2), fails with:

 {standard input}:20: Error: only lo regs allowed with immediate -- `mov fp,#0'
 {standard input}:21: Error: only lo regs allowed with immediate -- `mov lr,#0'
 {standard input}:25: Error: unshifted register required -- `and ip,a1,#-16'

Since there are no cores that we support that are Thumb1 only, use the
same solution as the one used by glibc: build the C library in ARM
mode.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/musl/musl.mk