summaryrefslogtreecommitdiff
path: root/libc
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2002-03-14 02:17:29 +0000
committerEric Andersen <andersen@codepoet.org>2002-03-14 02:17:29 +0000
commit90d986e8d275798fb0a45ffb3742f45815aea278 (patch)
tree76e55bdb35427e2091a5bb724f1c6e2daf669487 /libc
parent270579eef2ed6b32dd43abfefb38b4295ac7aa69 (diff)
Add some symbols needed for C++ to work. Temporary hack...
Diffstat (limited to 'libc')
-rw-r--r--libc/misc/ctype/Makefile11
-rw-r--r--libc/misc/ctype/junk.c10
2 files changed, 19 insertions, 2 deletions
diff --git a/libc/misc/ctype/Makefile b/libc/misc/ctype/Makefile
index c329c942c..fb099012a 100644
--- a/libc/misc/ctype/Makefile
+++ b/libc/misc/ctype/Makefile
@@ -27,14 +27,17 @@ include $(TOPDIR)Rules.mak
MSRC=ctype.c
MOBJ= isalnum.o isalpha.o isascii.o iscntrl.o isdigit.o isgraph.o \
islower.o isprint.o ispunct.o isspace.o isupper.o isxdigit.o \
- isxlower.o isxupper.o toascii.o tolower.o toupper.o isblank.o
+ isxlower.o isxupper.o toascii.o tolower.o toupper.o isblank.o \
ifeq ($(HAS_LOCALE),true)
MOBJ += ctype_C.o
endif
+CSRC=junk.c
+COBJS=$(patsubst %.c,%.o, $(CSRC))
-OBJS=$(MOBJ)
+
+OBJS=$(MOBJ) $(COBJS)
all: $(MOBJ) $(LIBC)
$(LIBC): ar-target
@@ -46,6 +49,10 @@ $(MOBJ): $(MSRC)
$(CC) $(CFLAGS) -DL_$* $< -c -o $*.o
$(STRIPTOOL) -x -R .note -R .comment $*.o
+$(COBJS): %.o : %.c
+ $(CC) $(CFLAGS) -c $< -o $@
+ $(STRIPTOOL) -x -R .note -R .comment $*.o
+
$(OBJS): Makefile
clean:
diff --git a/libc/misc/ctype/junk.c b/libc/misc/ctype/junk.c
new file mode 100644
index 000000000..d074c997e
--- /dev/null
+++ b/libc/misc/ctype/junk.c
@@ -0,0 +1,10 @@
+/* Temporary rubbish till I can get this stuff
+ * fixed properly */
+
+#include <features.h>
+#include <bits/types.h>
+
+const unsigned short int *__ctype_b; /* Characteristics. */
+const __int32_t *__ctype_tolower; /* Case conversions. */
+const __int32_t *__ctype_toupper; /* Case conversions. */
+