From fe571c0e41fd6f04ffa96b4b738542756c227fab Mon Sep 17 00:00:00 2001 From: Jan Janssen Date: Wed, 26 Jan 2022 23:35:36 +0000 Subject: [PATCH] boot: Use -ffile-prefix-map when present Origin: https://github.com/systemd/systemd/commit/1bc8417cfeeebb48b16039f26e0c75937784e75e Gbp-Pq: Name boot-Use-ffile-prefix-map-when-present.patch --- src/boot/efi/meson.build | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/boot/efi/meson.build b/src/boot/efi/meson.build index ea4f024a..da64205b 100644 --- a/src/boot/efi/meson.build +++ b/src/boot/efi/meson.build @@ -209,7 +209,17 @@ if get_option('b_lto') endif foreach arg : get_option('c_args') - if arg in ['-Werror', '-g', '-ggdb', '-O1', '-O2', '-O3', '-Og', '-Os', '-DNDEBUG', '-flto', '-fno-lto'] + if arg in [ + '-DNDEBUG', + '-fno-lto', + '-g', '-ggdb', + '-O1', '-O2', '-O3', '-Og', '-Os', + '-Werror', + ] or arg.split('=')[0] in [ + '-ffile-prefix-map', + '-flto', + ] + message('Using "@0@" from c_args for EFI compiler'.format(arg)) efi_cflags += arg endif -- 2.30.2