mirror of
https://github.com/systemd/systemd.git
synced 2025-02-02 13:47:27 +03:00
meson: Add efi-cflags option
This commit is contained in:
parent
cedf5b1aef
commit
c0e4459e09
@ -422,6 +422,8 @@ option('dbus', type : 'combo', choices : ['auto', 'true', 'false'],
|
|||||||
|
|
||||||
option('gnu-efi', type : 'combo', choices : ['auto', 'true', 'false'],
|
option('gnu-efi', type : 'combo', choices : ['auto', 'true', 'false'],
|
||||||
description : 'gnu-efi support for sd-boot')
|
description : 'gnu-efi support for sd-boot')
|
||||||
|
option('efi-cflags', type : 'array',
|
||||||
|
description : 'additional flags for EFI compiler')
|
||||||
# Note that LLD does not support PE/COFF relocations
|
# Note that LLD does not support PE/COFF relocations
|
||||||
# https://lists.llvm.org/pipermail/llvm-dev/2021-March/149234.html
|
# https://lists.llvm.org/pipermail/llvm-dev/2021-March/149234.html
|
||||||
option('efi-ld', type : 'combo', choices : ['auto', 'bfd', 'gold'],
|
option('efi-ld', type : 'combo', choices : ['auto', 'bfd', 'gold'],
|
||||||
|
@ -229,6 +229,8 @@ foreach arg : get_option('c_args')
|
|||||||
endif
|
endif
|
||||||
endforeach
|
endforeach
|
||||||
|
|
||||||
|
efi_cflags += get_option('efi-cflags')
|
||||||
|
|
||||||
efi_ldflags = [
|
efi_ldflags = [
|
||||||
'-fuse-ld=' + efi_ld,
|
'-fuse-ld=' + efi_ld,
|
||||||
'-L', efi_libdir,
|
'-L', efi_libdir,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user