diff options
author | kay.sievers@vrfy.org <kay.sievers@vrfy.org> | 2005-03-10 17:51:43 +0100 |
---|---|---|
committer | Greg KH <gregkh@suse.de> | 2005-04-26 23:51:00 -0700 |
commit | cb948532ff3cb7edf1d2eead7a5cce9e8a1a7a97 (patch) | |
tree | 5b2fb284278ff19db0c4b71e3d7f8d79a12d7cb3 /klibc/MCONFIG | |
parent | 08183c4b90505866e806d308213d0a2d293b2659 (diff) |
[PATCH] klibc: version 1.0.3
Diffstat (limited to 'klibc/MCONFIG')
-rw-r--r-- | klibc/MCONFIG | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/klibc/MCONFIG b/klibc/MCONFIG index 7a24b821ad..1141b78d47 100644 --- a/klibc/MCONFIG +++ b/klibc/MCONFIG @@ -29,6 +29,10 @@ OBJROOT = $(SRCROOT) KRNLSRC = $(SRCROOT)/linux KRNLOBJ = $(SRCROOT)/linux +# klibc version information +KLIBCVER = -D__KLIBC__=$(shell cut -d. -f1 < $(SRCROOT)/version) \ + -D__KLIBC_MINOR__=$(shell cut -d. -f2 < $(SRCROOT)/version) + ARCH = $(shell uname -m | sed -e s/i.86/i386/ -e s/sun4u/sparc64/ -e s/arm.*/arm/ -e s/sa110/arm/) CC = $(CROSS)gcc LD = $(CROSS)ld @@ -38,7 +42,7 @@ INCLUDE = -I$(SRCROOT)/include/arch/$(ARCH) \ -I$(SRCROOT)/include/bits$(BITSIZE) \ -I$(SRCROOT)/include \ -I$(KRNLOBJ)/include -I$(KRNLOBJ)/include2 -I$(KRNLSRC)/include -REQFLAGS = $(ARCHREQFLAGS) -nostdinc -iwithprefix include -D__KLIBC__ \ +REQFLAGS = $(ARCHREQFLAGS) $(KLIBCVER) -nostdinc -iwithprefix include \ $(INCLUDE) LDFLAGS = AR = $(CROSS)ar |