]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
boot: Enable C99
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Sat, 30 Jan 2021 23:02:24 +0000 (23:02 +0000)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Sun, 31 Jan 2021 21:46:05 +0000 (21:46 +0000)
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).

src/boot/efi/meson.build

index 875a501b30b19437828ad740964651807bde4db9..177957e76ac66c7883b79f7c81793c7f73c48868 100644 (file)
@@ -134,8 +134,8 @@ endif
 if have_gnu_efi
         compile_args = ['-Wall',
                         '-Wextra',
-                        '-std=gnu90',
-                        '-nostdinc',
+                        '-std=gnu99',
+                        '-nostdlib',
                         '-fpic',
                         '-fshort-wchar',
                         '-ffreestanding',