[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Relocated Header Directories



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Mon, Aug 21, 2017 at 08:37:14AM -0500, Dutch Ingraham wrote:
> Hi everyone -
> 
> It seems Debian has moved some header directories, like /usr/include/bits (and
> sys, and asm, etc.) from /usr/include/ to, e.g., /usr/include/i386-linux-gnu/bits/
> (arch-specific).
> 
> My first question is:  Why?

Multi-arch. These days you can have libraries (and the corresponding
headers) for several architectures co-installed on your system.

Start here:

  https://wiki.debian.org/Multiarch

> My second question is: How does this work?  There are no symlinks, yet a file
> like /usr/include/signal.h, has the standard "#include <bits/sigset.h>", yet
> that path does not exist with the change noted above.  So how is this file
> included?

Your compiler should know which architecture is relevant and set the default
include directories (can't look it up now to be sure, sorry).

Cheers
- -- tomás
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iEYEARECAAYFAlma5+cACgkQBcgs9XrR2kZbkgCeMXS69kgQkQAkOlMgIyJgPt8i
YloAnREMU31YSlj/GrO3/Yv/u/bAQ1lP
=DdkG
-----END PGP SIGNATURE-----


Reply to: