librd[ip]mon.a fixes [PATCH]

Shaun Jackman sjackman@gmail.com
Sun Feb 27 01:28:00 GMT 2005


Adding -lrdpmon to *link in the specs file did not seem to have the
desired effect for me. Adding it to *lib worked for me. There was also
a typo in libgloss/arm/Makefile.in that caused librdpmon.a and
librdimon.a to be empty.

The specs files are also installed to the multiarch subdirectories of
/usr/arm-elf/lib/... but theyare entirely ignored by gcc. They'd be
better off not installed at all to prevent confused people -- like
myself! -- messing with the wrong specs file.

Cheers,
Shaun

2005-02-26  Shaun Jackman  <sjackman@gmail.com>

	* libgloss/arm/Makefile.in (RDPMON_BSP): librdpmon.a was empty due to a
	typo. Fixed.
	(RDIMON_BSP): Ditto.
	* libgloss/arm/elf-rdpmon.specs: Add -lrdpmon to lib instead of link.
	* libgloss/arm/elf-rdimon.specs: Ditto.

diff -ur newlib-1.13.0.orig/libgloss/arm/Makefile.in
newlib-1.13.0/libgloss/arm/Makefile.in
--- newlib-1.13.0.orig/libgloss/arm/Makefile.in	2004-06-28
15:42:19.000000000 -0700
+++ newlib-1.13.0/libgloss/arm/Makefile.in	2005-02-25 17:12:25.000000000 -0800
@@ -116,11 +116,11 @@
 	$(CC) $(CFLAGS_FOR_TARGET) $(INCLUDES) -DARM_RDI_MONITOR -o $@ -c $<
 
 $(RDPMON_BSP): $(RDPMON_OBJS)
-	${AR} ${ARFLAGS} $@ $(IDTOBJS)
+	${AR} ${ARFLAGS} $@ $^
 	${RANLIB} $@
 
 $(RDIMON_BSP): $(RDIMON_OBJS)
-	${AR} ${ARFLAGS} $@ $(IDTOBJS)
+	${AR} ${ARFLAGS} $@ $^
 	${RANLIB} $@
 
 clean mostlyclean:
diff -ur newlib-1.13.0.orig/libgloss/arm/elf-rdimon.specs
newlib-1.13.0/libgloss/arm/elf-rdimon.specs
--- newlib-1.13.0.orig/libgloss/arm/elf-rdimon.specs	2004-06-09
12:06:50.000000000 -0700
+++ newlib-1.13.0/libgloss/arm/elf-rdimon.specs	2005-02-26
16:39:04.000000000 -0800
@@ -1,7 +1,7 @@
-%rename link                old_link
+%rename lib old_lib
 
-*link:
-%(old_link) -lrdimon
+*lib:
+-lrdimon %(old_lib)
 
 *startfile:
 crti%O%s crtbegin%O%s %{!pg:rdimon-crt0%O%s} %{pg:rdimon-crt0%O%s}
diff -ur newlib-1.13.0.orig/libgloss/arm/elf-rdpmon.specs
newlib-1.13.0/libgloss/arm/elf-rdpmon.specs
--- newlib-1.13.0.orig/libgloss/arm/elf-rdpmon.specs	2004-06-09
12:06:50.000000000 -0700
+++ newlib-1.13.0/libgloss/arm/elf-rdpmon.specs	2005-02-25
17:22:39.000000000 -0800
@@ -1,7 +1,7 @@
-%rename link                old_link
+%rename lib old_lib
 
-*link:
-%(old_link) -lrdpmon
+*lib:
+-lrdpmon %(old_lib)
 
 *startfile:
 crti%O%s crtbegin%O%s %{!pg:rdpmon-crt0%O%s} %{pg:rdpmon-crt0%O%s}



More information about the Newlib mailing list