From: Daan De Meyer Date: Sat, 30 Jan 2021 23:02:24 +0000 (+0000) Subject: boot: Enable C99 X-Git-Tag: v248-rc1~220^2~10 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=50212228424532918182c53e5810835edbc1a328;p=thirdparty%2Fsystemd.git 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). --- diff --git a/src/boot/efi/meson.build b/src/boot/efi/meson.build index 875a501b30b..177957e76ac 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',