Re: RFC: Reworking build flags — Multiple toolchains support
Wookey <[email protected]>
| Newsgroups | gmane.linux.debian.devel.dpkg.general |
|---|---|
| Organization | Wookware |
| Message-ID | <[email protected]> |
On 2023-11-30 21:10 +0100, Helmut Grohne wrote: [lots of sensible things] > I'm not sure whether per-setting toolchain actually is that useful in > the end. I would expect most users of this to want to change them all at > once. For instance, changing CC to clang without also updating > CFLAGS accordingly is doomed to failure. The global setting very much > makes sense to me. agreed > Can we eventually challenge debian/rules being a supported entry point? > Practically, nobody does this. That's not entirely true. I still do 'debian/rules clean' a lot and 'debian/rules binary' quite often. But I agree that if we need to run dpkg-buildpackage to set up the right environment, then declaring that to be the suppported interface is reasonable at this point. I do recall 'debian/rules binary' being more reliable than 'dpkg-buildpackage -nc -T binary' in the past, but I forget why. > This comes with another wrinkle. What do you set CC to when your > toolchain is clang and your host architecture differs from your build > architecture? I think the only correct way is to include the -target > option in the CC variable and that's going to trip up a lot of uses. > Until clang provides <triplet>-clang symlinks (which clang already > interprets correctly as far as I know), I don't class clang as a supportable > toolchain given our interface. Yes this has been a problem for many years and no-one has shown much interest in fixing it over the last decade or so. Providing the symlinks at least shouldn't be very hard? Wookey -- Principal hats: Debian, Wookware, ARM http://wookware.org/
signature.asc
(application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEER4nvI8Pe/wVWh5yq+4YyUahvnkcFAmVqma8ACgkQ+4YyUahv nkeDvg//cjQhiyLMr4Dpa+Nx854FHczeVpQTDdihkjTzw/azLjI5ppD/jwP2x7ZO IbMqK3lkuByNB63x2VfyCPS2jnGmJJsVW3ra03pjixZtsHrosr/+CmeLyxDLm2lz +oZU5kR0Syf4HVnvf3zVsIJwfcYHI6jkq3Ftb2g5dRn5TOprbDyJuWyGUbE6Ns60 HZIcad73agTDNeuRBja2X7oBBB7amUForXr6Mfhr9llGuVZ7QqFXG1mOpe/S9rdm fVY+NX9NgMbFgV372QisUxBZzSuTKeeNqOrYSG3ott1JynMRbxKG16zZKoBRhCnF P0AotzgtF2abG5aXK5il3VhFZ64xYYCBpZFpAjxWW7H0adxrK9YBiH338pMknkbz +sCF2kiP16q/6MFRh0UF3Lnu/EFx6aPfKS20rrTJPZ2U7VRanlbb3AmZw9AkD1B+ hLt49TxAezXKY8WaW+qJFBbHq+xrIY2TMAqsE2gU8efofoDVJ/gUURtr/0zmQw9B w5vF3Fcq4q55xnF/bSf/bCPbsPVCsjEr9S5m37W3ENFkuMf5p391Q/PQ7jCgVWpV rVT/A41rq8SjT6EB9UIUOXgWwj92BGFFpXCUhCDWsiTaW7jKyNOVek5Mbp/hzLPB ZxuQg6zG0FjLlDBwEwkeHb+SiIx+aprJr5Rf0F3XTIey4U2RqlQ= =MKJF -----END PGP SIGNATURE-----