From 1d16930450d8b09808258b7d328616ab79289a7d Mon Sep 17 00:00:00 2001 From: theraven Date: Mon, 8 Aug 2011 13:19:52 +0000 Subject: [PATCH] Fix missing semicolon. Make Makefile.clang work Patch by Charlie Sharpsteen. --- Makefile.clang | 7 +++---- objc/runtime.h | 2 +- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/Makefile.clang b/Makefile.clang index 2ed2f8f..38885ab 100644 --- a/Makefile.clang +++ b/Makefile.clang @@ -39,14 +39,13 @@ OBJECTS = \ selector_table.bc\ sendmsg2.bc\ statics_loader.bc\ - sync.bc\ toydispatch.bc all: libobjc.so.$(VERSION) libobjc.a libobjc.so.$(VERSION): libobjc.o @echo Linking shared library... - @ld -shared -o $@ libobjc.o + @clang -shared -o $@ libobjc.o -lpthread libobjc.a: libobjc.o @echo Linking static library... @@ -56,9 +55,9 @@ libobjc.o: libobjc.bc @echo Generating native object code... @llc -O3 -filetype=obj -o libobjc.o libobjc.bc -libobjc.bc: $(OBJECTS) exports.txt +libobjc.bc: $(OBJECTS) @echo Linking bitcode... - @llvm-ld -internalize -internalize-public-api-file=../exports.txt -link-as-library -native -o libobjc.bc $(OBJECTS) + @llvm-ld -internalize -link-as-library -native -o libobjc.bc $(OBJECTS) .c.bc: @echo Compiling $<... diff --git a/objc/runtime.h b/objc/runtime.h index 41000b9..6ac360c 100644 --- a/objc/runtime.h +++ b/objc/runtime.h @@ -121,7 +121,7 @@ typedef struct objc_method *Method; typedef signed char BOOL; # else # ifdef __vxwords -typedef int BOOL +typedef int BOOL; # else typedef unsigned char BOOL; # endif