Tidied up/fixed compilation of exception.c
authorAlexander Malmberg <alexander@malmberg.org>
Sat, 19 Jun 2004 23:46:27 +0000 (23:46 +0000)
committerNicola Pero <nicola@gcc.gnu.org>
Sat, 19 Jun 2004 23:46:27 +0000 (23:46 +0000)
From-SVN: r83399

libobjc/ChangeLog
libobjc/Makefile.in

index 1c85986..ef554a7 100644 (file)
@@ -1,3 +1,9 @@
+2004-06-20  Alexander Malmberg  <alexander@malmberg.org>
+
+        * Makefile.in (exception.lo): Remove $(OBJC_GCFLAGS).
+        (exception_gc.lo): New.
+        (OBJS_GC): Add exception_gc.lo.
+       
 2004-06-17  Richard Henderson  <rth@redhat.com>
 
        * exception.c: New file.
index 95c94bf..6af980e 100644 (file)
@@ -151,7 +151,7 @@ OBJS_GC = archive_gc.lo class_gc.lo encoding_gc.lo gc_gc.lo hash_gc.lo \
          init_gc.lo linking_gc.lo misc_gc.lo nil_method_gc.lo \
          NXConstStr_gc.lo Object_gc.lo objects_gc.lo Protocol_gc.lo \
          sarray_gc.lo selector_gc.lo sendmsg_gc.lo thr_gc.lo \
-         $(OBJC_THREAD_FILE)_gc.lo
+         $(OBJC_THREAD_FILE)_gc.lo exception_gc.lo
 
 runtime-info.h: 
        echo "" > tmp-runtime.m
@@ -254,6 +254,10 @@ $(OBJC_THREAD_FILE)_gc.lo: $(OBJC_THREAD_FILE).c
                $(INCLUDES) $<
 
 exception.lo: exception.c
+       $(LIBTOOL_COMPILE) $(CC) -c -o $@ $(ALL_CFLAGS) \
+               -fexceptions $(INCLUDES) $<
+
+exception_gc.lo: exception.c
        $(LIBTOOL_COMPILE) $(CC) -c -o $@ $(ALL_CFLAGS) $(OBJC_GCFLAGS) \
                -fexceptions $(INCLUDES) $<