This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

PATCH: Build libiberty/pic/libiberty.a


On Fri, Oct 19, 2001 at 06:27:27PM -0400, DJ Delorie wrote:
> 
> This looks OK, but the libiberty part needs to be a separate patch and
> needs to also be posted to gcc-patches@gcc.gnu.org before I can
> approve it.


Here it is.


H.J.
----
2001-10-19  H.J. Lu <hjl@gnu.org>

	* Makefile.in ($(TARGETLIB)): Also generate pic/$(TARGETLIB) if
	necessary.

--- binutils/libiberty/Makefile.in.liberty	Mon Oct 15 21:04:27 2001
+++ binutils/libiberty/Makefile.in	Fri Oct 19 15:36:41 2001
@@ -155,10 +155,17 @@ CONFIGURED_OFILES = asprintf.o atexit.o 
 	vsprintf.o waitpid.o
 
 $(TARGETLIB): $(REQUIRED_OFILES) $(EXTRA_OFILES) $(LIBOBJS)
-	-rm -f $(TARGETLIB)
+	-rm -f $(TARGETLIB) pic/$(TARGETLIB)
 	$(AR) $(AR_FLAGS) $(TARGETLIB) \
 	  $(REQUIRED_OFILES) $(EXTRA_OFILES) $(LIBOBJS)
 	$(RANLIB) $(TARGETLIB)
+	if [ x"$(PICFLAG)" != x ]; then \
+	  cd pic; \
+	  $(AR) $(AR_FLAGS) $(TARGETLIB) \
+	    $(REQUIRED_OFILES) $(EXTRA_OFILES) $(LIBOBJS); \
+	  $(RANLIB) $(TARGETLIB); \
+	  cd ..; \
+	else true; fi
 
 info: libiberty.info info-subdir
 install-info: install-info-subdir


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]