[uClibc] uclibc.mk and staging_dir/include

Erik Andersen andersen at codepoet.org
Wed Dec 17 18:48:11 UTC 2003


On Wed Dec 17, 2003 at 02:31:05PM +0000, Christophe Dubach wrote:
> Why do the makefile a symlink staging_dir/include onto /usr/include ?

It doesn't do that.

$ readlink build_i386/staging_dir/include
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)

Yup,  


> 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

With
    
    BUILD_DIR:=$(BASE_DIR)/build_$(ARCH)$(ARCH_FPU_SUFFIX)
    STAGING_DIR=$(BUILD_DIR)/staging_dir
in the top level makefile, this line works as expected...

> 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).

Sorry no.  That will not do what is needed for 2.2, and 2.4
kernels.  Perhaps you could tell us what the problem was...

 -Erik

--
Erik B. Andersen             http://codepoet-consulting.com/
--This message was written using 73% post-consumer electrons--



More information about the uClibc mailing list