Bug#905381: systemd FTCBFS for arm64: uses the build architecture compiler/linker for src/boot/efi
Helmut Grohne
helmut at subdivi.de
Fri Aug 3 21:08:33 BST 2018
Source: systemd
Version: 239-7
Tags: patch
User: helmutg at debian.org
Usertags: rebootstrap
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
same thing.
In any case, the attached patch fixes the cross build problem for arm64.
Please consider applying or improving it.
Helmut
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cross.patch
Type: text/x-diff
Size: 1334 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-systemd-maintainers/attachments/20180803/62f4f15c/attachment.patch>
More information about the Pkg-systemd-maintainers
mailing list