aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2005-03-10 01:14:50 +0000
committerH. Peter Anvin <hpa@zytor.com>2005-03-10 01:14:50 +0000
commitb39c8c1c074fb0ec8fe999b426ff2fe87e4098e5 (patch)
tree0399f8c03e351e73f3ff546ac3d9449d961464a1
parent8f81955ba3952de4e57a4efa6f4b30895610d3f9 (diff)
downloadklibc-b39c8c1c074fb0ec8fe999b426ff2fe87e4098e5.tar.gz
Define __KLIBC__=<major version> and __KLIBC_MINOR__=<minor version>klibc-1.0.2
-rw-r--r--MCONFIG6
1 files changed, 5 insertions, 1 deletions
diff --git a/MCONFIG b/MCONFIG
index 7a24b821adf51..1141b78d474be 100644
--- a/MCONFIG
+++ b/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