Some gcc-based toolchain would fail to link if the abi set by the cpuflags does not match the default.
Unified · Split
| @@ -3461,6 +3461,7 @@ fi · 3460 unmodified lines | ||
| 3461 | 3461 | if [ "$cpu" != generic ]; then |
| 3462 | 3462 | add_cflags $cpuflags |
| 3463 | 3463 | add_asflags $cpuflags |
| 3464 | + test "$cc_type" = "$ld_type" && add_ldflags $cpuflags | |
| 3464 | 3465 | fi |
| 3465 | 3466 | |
| 3466 | 3467 | # compiler sanity check |