From: Jan Janssen Date: Wed, 26 Jan 2022 23:35:36 +0000 (+0000) Subject: boot: Use -ffile-prefix-map when present X-Git-Tag: archive/raspbian/250.3-2+rpi1^2~21 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=fe571c0e41fd6f04ffa96b4b738542756c227fab;p=systemd.git 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 --- 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