Getting cross compilation to work.
Per Buer
per.buer at varnish-software.com
Tue Apr 21 13:17:34 UTC 2026
On Mon, Apr 20, 2026 at 10:26 PM Poul-Henning Kamp <phk at phk.freebsd.dk>
wrote:
> --------
> Per Buer writes:
>
> > Is a PR implementing this welcome?
>
> Absolutely!
>
Fifteen places are affected by this. 14 of them are clean and easy to
address. The last one is params.First, this requires significant work and
complexity, and tackling it in Python will likely produce something quite
fragile.
So, I looked into autotools/CC_FOR_BUILD, which correctly creates an ad-hoc
binary for the host, not the target. The problem is that "params.rst" will
change if you are on 64-bit compiling for 32-bit, as the accepted arguments
are somewhat different. Everything else will do fine.
Do we still care about 32 bit? If we do this, it gets out of hand; if we
don't care, it remains trivial. We still can't compile for other platforms,
such as compiling on Linux for FreeBSD, because accept_filter and sysconf
will differ. But arm64 <--> amd64 on the OS will work fine.
--
Per Buer
Varnish Software
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://vinyl-cache.org/lists/pipermail/vinyl-dev/attachments/20260421/1ebb7304/attachment.html>
More information about the vinyl-dev
mailing list