mirror of
https://github.com/systemd/systemd.git
synced 2025-02-04 21:47:31 +03:00
build: support non-x86 EFI builds
Move the no-mmx/no-sse CFLAGS to X86-64 and IA32 defines in preparation for ARM32 and Aarch64 support.
This commit is contained in:
parent
3ebc2dc498
commit
32ef61b888
12
Makefile.am
12
Makefile.am
@ -2564,17 +2564,23 @@ efi_cflags = \
|
||||
-fno-strict-aliasing \
|
||||
-fno-stack-protector \
|
||||
-Wsign-compare \
|
||||
-Wno-missing-field-initializers \
|
||||
-mno-sse \
|
||||
-mno-mmx
|
||||
-Wno-missing-field-initializers
|
||||
|
||||
if ARCH_X86_64
|
||||
efi_cflags += \
|
||||
-mno-red-zone \
|
||||
-mno-sse \
|
||||
-mno-mmx \
|
||||
-DEFI_FUNCTION_WRAPPER \
|
||||
-DGNU_EFI_USE_MS_ABI
|
||||
endif
|
||||
|
||||
if ARCH_IA32
|
||||
efi_cflags += \
|
||||
-mno-sse \
|
||||
-mno-mmx
|
||||
endif
|
||||
|
||||
efi_ldflags = \
|
||||
$(EFI_LDFLAGS) \
|
||||
-T $(EFI_LDS_DIR)/elf_$(EFI_ARCH)_efi.lds \
|
||||
|
Loading…
x
Reference in New Issue
Block a user