[Android-tools-devel] Bug#1123019: mini-soong: support cross compilation

Andrej Shadura andrew at shadura.me
Tue Dec 16 09:52:45 GMT 2025


Hello,

On Mon, 15 Dec 2025, at 21:31, Helmut Grohne wrote:
> libldac cannot be cross built from source, because its mini-soong
> dependency is not satisfiable. In general, Arch:all packages can never
> satisfy cross Build-Depends unless marked Multi-Arch: foreign or
> annotated :native. Most build systems tend to be annotated Multi-Arch:
> foreign so I suggest doing it here as well. However, it defaults to the
> build architecture compiler. While mini-soong consumes DEB_HOST_*
> variables for a lot of things, it does not yet seed the compiler from
> them. Doing so is relatively easy using dpkg's buildtools.mk as
> buildflags.mk already is being used. I'm attaching a combined patch and
> once it is applied, libldac actually cross builds. What do you think
> about it?

Thanks, merged!

-- 
Cheers,
  Andrej



More information about the Android-tools-devel mailing list