chiark / gitweb /
[PATCH] Fixup path for kernel includes when building with klibc.
authorlethal@linux-sh.org <lethal@linux-sh.org>
Sat, 25 Oct 2003 06:37:17 +0000 (23:37 -0700)
committerGreg KH <gregkh@suse.de>
Wed, 27 Apr 2005 04:06:22 +0000 (21:06 -0700)
Fixup path for kernel includes when building with klibc.

klibc expects the symlink klibc/linux to point to a relatively up
to date tree, use -Iklibc/linux/include to make linux/ and asm/
includes resolve properly, as these won't exist in the regular
klibc/klibc/include location.

Makefile.klibc

index f8f3955676b3e039996ecb5474f311216acc8d05..f7c3dbd84486c6320b7759fc1295690741263d3a 100644 (file)
@@ -120,7 +120,7 @@ ifeq ($(strip $(KLIBC)),true)
 #      LIB_OBJS =      $(GCC_LIB)
 
        LIBC =  $(ARCH_LIB_OBJS) $(LIB_OBJS)
-       CFLAGS += -nostdinc -I$(INCLUDE_DIR) -I$(INCLUDE_DIR)/bits32 -I/home/greg/linux/linux-2.5/include -I$(GCCINCDIR) -D__KLIBC__
+       CFLAGS += -nostdinc -I$(INCLUDE_DIR) -I$(INCLUDE_DIR)/bits32 -I$(GCCINCDIR) -Iklibc/linux/include -D__KLIBC__
        LDFLAGS =
 #      LDFLAGS = --static --nostdlib -nostartfiles
 else