On Wed, 16 Jan 2019, Jakub Jelinek wrote:
> In normal C headers, we can #if __WORDSIZE == 32 or __SIZEOF_LONG__ == 4 or
> defined(__ILP64__) and similar, but in these headers we can't, as no
> preprocessing is happening.
(With such preprocessing, the mechanism glibc uses for gnu/stubs.h and
gnu/lib-names.h could be used.)
> So, I think we need more multi-arch like setup for these locations, say
> /usr/include/finclude/<target-triplet>{,<multisubdir>/}/
> or similar which would be less ambiguous.
My understanding from the previous discussions is that with
--enable-multiarch, these files will (or should) use multiarch names - but
we don't have any support for using multiarch names for only some files in
a toolchain. (Which leads to suggestions like this one for having a
target triplet in there which isn't actually a canonical multiarch name.)
--
Joseph S. Myers
[email protected]