]> git.michaelhowe.org Git - packages/o/openafs.git/commit
Generate stub header files for h/*.h files included in libuafs
authorRuss Allbery <rra@stanford.edu>
Tue, 23 Aug 2011 19:50:55 +0000 (12:50 -0700)
committerRuss Allbery <rra@debian.org>
Fri, 2 Sep 2011 00:53:06 +0000 (17:53 -0700)
commitc0f29d6a43033c1a8b768813001e4ec5492d2cb3
tree06f3968678f3a02c997a1c131756150f8c5beeff
parent67dcd834adc12f502a442ac9491715261ff32b4e
Generate stub header files for h/*.h files included in libuafs

Previously, the libuafs build created a symlink from h to
/usr/include/sys so that files included under h/* by kernel source
files could be found in the normal system header location.  However,
this assumption about the system header location is no longer valid.
Debian and Ubuntu systems with multiarch have arch-specific include
paths so that the same host can be used to build 32-bit and 64-bit
binaries with different system headers, and those include paths are
automatically searched by the compiler.  This means some standard
headers are no longer found directly in /usr/include/sys but are
instead found in /usr/include/<arch>/sys.

Using a stripped-down version of similar code for building the kernel
module on Linux, create an h directory containing stub header files
that just include the relevant system <sys/*.h> header file instead.
This allows the compiler to implement its normal internal header
search algorithm.

Also remove all the other symlinks, such as sys, netinet, etc., that
just pointed to the same directories under /usr/include.  We can assume
the normal compiler search algorithm will find these headers without
requiring this assistance.

Change-Id: Ie19d12e3d3f0068c88d0a9c83f6a96d51baee018

Conflicts:

src/libuafs/Makefile.common.in
src/libuafs/Makefile.common.in
src/libuafs/make_h_tree.pl [new file with mode: 0755]