chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
klibc: version 1.0.14
[elogind.git]
/
klibc
/
MCONFIG
diff --git
a/klibc/MCONFIG
b/klibc/MCONFIG
index 7a24b821adf5192d104716754f3fb43e469a21a8..1141b78d474bed1d9c2361240dd11d1e4ce1b9e0 100644
(file)
--- a/
klibc/MCONFIG
+++ b/
klibc/MCONFIG
@@
-29,6
+29,10
@@
OBJROOT = $(SRCROOT)
KRNLSRC = $(SRCROOT)/linux
KRNLOBJ = $(SRCROOT)/linux
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
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
-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
$(INCLUDE)
LDFLAGS =
AR = $(CROSS)ar