diff options
| author | Khem Raj <raj.khem@gmail.com> | 2023-08-10 23:31:01 -0700 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-08-15 08:15:25 +0100 |
| commit | 30f2431acc48f4da7e90cd0f43da2df6082defe1 (patch) | |
| tree | 761726c2a8f94a649e70911cfe72fe99a3658204 /meta | |
| parent | 788f6a0e16f0869c9da47b193a667d904afa3fc2 (diff) | |
| download | poky-30f2431acc48f4da7e90cd0f43da2df6082defe1.tar.gz | |
systemd-boot: Fix build on musl
systemd efi.h defines wchar_t from compiler provided __WCHAR_TYPE__
therefore we do not want it to come from alltypes.h in musl case which
otherwise will end up with conflicting definitions of wchar_t, defining
__DEFINED_wchar_t ensures that alltypes.h does not provide it
(From OE-Core rev: 7b84fe344a2067b63d0c222fbc68d5916fa7903f)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
| -rw-r--r-- | meta/recipes-core/systemd/systemd-boot_254.bb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/recipes-core/systemd/systemd-boot_254.bb b/meta/recipes-core/systemd/systemd-boot_254.bb index 5d69cf83ab..6240ee9339 100644 --- a/meta/recipes-core/systemd/systemd-boot_254.bb +++ b/meta/recipes-core/systemd/systemd-boot_254.bb | |||
| @@ -49,6 +49,8 @@ RDEPENDS:${PN} += "virtual-systemd-bootconf" | |||
| 49 | # Imported from the old gummiboot recipe | 49 | # Imported from the old gummiboot recipe |
| 50 | TUNE_CCARGS:remove = "-mfpmath=sse" | 50 | TUNE_CCARGS:remove = "-mfpmath=sse" |
| 51 | 51 | ||
| 52 | CFLAGS:append:libc-musl = " -D__DEFINED_wchar_t" | ||
| 53 | |||
| 52 | COMPATIBLE_HOST = "(aarch64.*|arm.*|x86_64.*|i.86.*)-linux" | 54 | COMPATIBLE_HOST = "(aarch64.*|arm.*|x86_64.*|i.86.*)-linux" |
| 53 | COMPATIBLE_HOST:x86-x32 = "null" | 55 | COMPATIBLE_HOST:x86-x32 = "null" |
| 54 | 56 | ||
