Comment 8 for bug 750585

Revision history for this message
Wookey (wookey) wrote :

Here is a patch to make klibc build with new linux-libc-dev (multiarched) package

klibc uses -nostdinc before specifying include paths, thus stopping the normal compiler system paths being searched. This is (probably) correct behaviour for a c-library, although it may be possible to build it correctly without using -nostdinc in which case this fix would not be necessary.

Because the normal paths are not being searched but klibc still needs the kernel headers, the Debian packaging makes symlinks to /usr/include/linux and /usr/include/asm-generic. This patch adds /usr/include/$(DEB_HOST_MULTIARCH)/asm to the set of links maintained. It works correctly if switching architectures. I haven't tested cross-building yet.