m32r libgloss issue

Joel Sherrill joel.sherrill@oarcorp.com
Thu Oct 2 17:36:00 GMT 2008


Hi,

libgloss/m32r cannot be built except in a one-tree
style build because it reaches up and over to gdb
to get m32r-stub.c. 

Shouldn't m32r-stub.c be in libgloss/m32r?

When I copy the file and delete the referencing
lines in the Makefile.in, it builds fine.

$ cvs diff -u Makefile.in
Index: Makefile.in
===================================================================
RCS file: /cvs/src/src/libgloss/m32r/Makefile.in,v
retrieving revision 1.6
diff -u -r1.6 Makefile.in
--- Makefile.in    28 Jun 2004 22:42:20 -0000    1.6
+++ Makefile.in    2 Oct 2008 16:55:46 -0000
@@ -85,9 +85,6 @@
 
 all: $(CRT0) $(LIBGLOSS) $(MONLIBGLOSS) $(GDBLIB) $(GDBSTUB)
 
-m32r-stub.o: $(srcdir)/$(MULTISRCTOP)../../gdb/m32r-stub.c
-    $(CC) -c $(CFLAGS) -o $@ $(srcdir)/$(MULTISRCTOP)../../gdb/m32r-stub.c
-
 libgloss.a: $(LIBOBJS)
     $(AR) $(ARFLAGS) $@ $(LIBOBJS)
     $(RANLIB) $@

-- 
Joel Sherrill, Ph.D.             Director of Research & Development
joel.sherrill@OARcorp.com        On-Line Applications Research
Ask me about RTEMS: a free RTOS  Huntsville AL 35805
   Support Available             (256) 722-9985




More information about the Newlib mailing list