[uClibc] uclibc.mk and staging_dir/include

Christophe Dubach christophe.dubach at epfl.ch
Wed Dec 17 14:31:05 UTC 2003


Why do the makefile a symlink staging_dir/include onto /usr/include ? It
can cause some trouble, for instance if I'm compiling for a different
kernel version of the one which is installed in the system.

We should have only :
staging_dir/usr/include (include file such as stdio.h genereted by
buildroot)
staging_dir/usr/include/linux (header file for the kernel that will be
used on the final system)

And not at all have this staging_dir/include link and change the include
path of gcc.

Here is the line in the uclibc.mk file that need to be changed I think :
ln -s usr/include $(STAGING_DIR)/include

And another thing, we should also change the file
buildarm/busybox-0.60.5/libbb/loop.h like this:
//#include <linux/loop.h>
#include "real_loop.h"
Because I encounter some problem with the header of kernel 2.6 (arm
configuration).


Christophe.




More information about the uClibc mailing list