Bug#905381: systemd FTCBFS for arm64: uses the build architecture compiler/linker for src/boot/efi
helmut at subdivi.de
Fri Aug 3 21:08:33 BST 2018
User: helmutg at debian.org
cross building systemd to arm64 presently fails, because the build
system uses plain gcc and plain ld (build architecture compiler and
linker respectively) for building src/boot/efi. These values come from
the efi-cc and efi-ld options respectively. It rather should be using
host tools here.
The attached patch fixes that by changing the defaults for these options
to canary values '$cc' and '$ld' respectively. Using get_compiler is not
possible in meson_options.txt. Then in the respective use, the canary is
replaced with the detected compiler or linker. Thus only the default is
changed to sane values and overriding the with options is still
possible. I'm Ccing Jussi in case there is a better way to achieve the
In any case, the attached patch fixes the cross build problem for arm64.
Please consider applying or improving it.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 1334 bytes
Desc: not available
More information about the Pkg-systemd-maintainers