https://bugs.winehq.org/show_bug.cgi?id=48878
Luca Boccassi luca.boccassi@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #66816|0 |1 is obsolete| | Attachment #66821|0 |1 is obsolete| | Attachment #66822|0 |1 is obsolete| |
--- Comment #5 from Luca Boccassi luca.boccassi@gmail.com --- Created attachment 66826 --> https://bugs.winehq.org/attachment.cgi?id=66826 Patch to fully enable multi-arch cross build of i386 from amd64
This patch refactores the autoconf flags settings in rules, removes the explicit dependency on gcc (it's part of build-essential), moves all manpages to wine-staging (tools are not build on cross-build so dh_install fails), uses ln -sf (to allow building with -nc).
With these patches, a rebuilt prelink and execstack with Multi-Arch: allowed, I can successfully build amd64 and i386 packages from the same source directory with the following one-time steps:
dpkg --add-architecture i386 apt update apt build-dep . apt buil-dep -ai386 . dpkg-buildpckage dpkg-buildpackage -ai386
Building amd64 first is necessary to get winetools built. It's possible to make the i386 build on amd64 completely self contained by building only the tools directory first. If I have time I'll send another patch to do that. But usually one wants both amd64 and i386 packages, so this is good enough for me right now.