On Tue, Dec 17, 2024 at 10:25:48AM +0100, Matthias Klose wrote: > On 17.12.24 00:58, Joseph Myers wrote: > > On Mon, 16 Dec 2024, Matthias Klose wrote: > > > > > On 14.12.24 15:38, Matthias Klose wrote: > > > > I tried to use the patches to build binary packages for Debian. Found > > > > some > > > > issues: > > > > > > tried to build libgcobol on more architectures, please find the attached > > > patch > > > to disable building libgcobol on some architectures. > > > > Enabling on x86_64-*-linux* and disabling on i?86-*-linux* is inherently > > suspect since the difference between those is only about what the default > > multilib is, and says nothing about the multilib used for a particular > > compilation of libgcobol. (Of course we first need to fix multilib > > support for libgcobol if that isn't working correctly - all target > > libraries in GCC need proper multilib support.) > > > > why is this suspect? looking at libtsan and libhwasan, these are only built > for the 64bit variant, not for 32 and x32.
Even in that case it isn't decided based on the triplet but on whether it is lp64 or not: x86_64-*-linux* | i?86-*-linux*) if test x$ac_cv_sizeof_void_p = x8; then TSAN_SUPPORTED=yes etc. Though, it should be limited to lp64 only if there is a strong reason for that... Jakub