When building with CONFIG_EFI and CONFIG_EFI_STUB on ARM, the libstub
Makefile would use -mno-single-pic-base without checking it was
supported by the compiler. As the ARM (32-bit) clang backend does not
support this flag, the build would fail.
This changes the Makefile to check the compiler's support for
-mno-single-pic-base before using it, similar to
|
||
|---|---|---|
| .. | ||
| arm-stub.c | ||
| arm32-stub.c | ||
| arm64-stub.c | ||
| efi-stub-helper.c | ||
| efistub.h | ||
| fdt.c | ||
| gop.c | ||
| Makefile | ||
| random.c | ||
| secureboot.c | ||
| string.c | ||
| tpm.c | ||