diff options
author | Daan De Meyer <daan.j.demeyer@gmail.com> | 2021-01-30 23:02:24 +0000 |
---|---|---|
committer | Daan De Meyer <daan.j.demeyer@gmail.com> | 2021-01-31 21:46:05 +0000 |
commit | 50212228424532918182c53e5810835edbc1a328 (patch) | |
tree | 17890ea2e57b8083ea4d9fbe0912d3295ec48885 | |
parent | ce0f078f4d23690e3b5d870e062e35aeaf581e7e (diff) | |
download | systemd-50212228424532918182c53e5810835edbc1a328.tar.gz |
boot: Enable C99
Instead of using -nostdinc, we use -nostdlib. This is necessary
to allow moving to C99 as efibind.h includes stdint.h when C99
is enabled. It isn't necessarily problematic to use some standard
library headers as long as they don't contain functions defined in
libc or another system library (or in other words, header only
headers are fine to use in sd-boot).
-rw-r--r-- | src/boot/efi/meson.build | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/boot/efi/meson.build b/src/boot/efi/meson.build index 875a501b30..177957e76a 100644 --- a/src/boot/efi/meson.build +++ b/src/boot/efi/meson.build @@ -134,8 +134,8 @@ endif if have_gnu_efi compile_args = ['-Wall', '-Wextra', - '-std=gnu90', - '-nostdinc', + '-std=gnu99', + '-nostdlib', '-fpic', '-fshort-wchar', '-ffreestanding', |