Commit a176843
committed
fix(luajit): support building on aarch64 hosts
LuaJIT requires its host tools (minilua, buildvm) to match the
target's bitness. On x86_64 hosts this is solved with gcc -m32,
but aarch64 has no equivalent flag.
Use Buildroot's own cross-compiler (TARGET_CC) to build the host
tools as static arm32 binaries, which run natively on aarch64 via
the kernel's 32-bit compat mode (CONFIG_COMPAT). Also use
TARGET_CFLAGS/TARGET_LDFLAGS for the host tools on aarch64, since
HOST_CFLAGS/HOST_LDFLAGS contain aarch64-specific include/library paths
that are wrong for arm32.
Skip selecting BR2_HOSTARCH_NEEDS_IA32_COMPILER on aarch64 since
the IA32 multilib check is not applicable.1 parent 4124f10 commit a176843
2 files changed
Lines changed: 14 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| |||
Lines changed: 13 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
31 | 39 | | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
32 | 43 | | |
33 | 44 | | |
34 | 45 | | |
| |||
44 | 55 | | |
45 | 56 | | |
46 | 57 | | |
47 | | - | |
48 | | - | |
| 58 | + | |
| 59 | + | |
49 | 60 | | |
50 | 61 | | |
51 | 62 | | |
| |||
0 commit comments