Issue discovered as $TARGET expanding to aarch64-libreelec-linux-gnueabi
Should build aarch64 for gnu, not gnueabi
- which doesn't make sense on aarch64 as eabi implies soft float
Reported-by: MrDuck2742
Suggested-by: Matthias Reichl <hias@horus.com>
Signed-off-by: Rudi Heitbaum <rudi@heitbaum.com>
Tested-by: Matthias Reichl <hias@horus.com>
Tested-by: MrDuck2742
march and mcpu were added in ~2011. I don't know why. I have seen CFLAGS added
en masse to LDFLAGS when using LTO, but that does not explain these inclusions.
Remove to cleanup LDFLAGS.
Signed-off-by: Ian Leonard <antonlacon@gmail.com>
ARMv8.0-A cpus have an optional LSE feature. This is mandatory in
ARMv8.1-A. By default, gcc will attempt to build support for runtime
detection of the LSE feature on ARMv8.0-A. This causes build failures
when attempting to create a 64-bit userland.
Test packages for this failure include gdb and mesa. Errors manifest
as undefined references to "__aarch64_cas4_acq_rel" or
"__aarch64_swp4_acq_rel" at compile time.
Disable runtime detection to always use its fallback by adding
-mno-outline-atomics to cflags.
Signed-off-by: Ian Leonard <antonlacon@gmail.com>
When compiling glibc for cortex-a9, the following errors appears:
cc1: error: switch -mcpu=cortex-a9 conflicts with -march=armv7-a switch [-Werror]
Using mcpu with march and mtune is not recommended and compiler emits
warnings/errors when mismatched.