This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
PATCH: Build libiberty/pic/libiberty.a
- To: DJ Delorie <dj at delorie dot com>
- Subject: PATCH: Build libiberty/pic/libiberty.a
- From: "H . J . Lu" <hjl at lucon dot org>
- Date: Fri, 19 Oct 2001 15:38:18 -0700
- Cc: gcc-patches at gcc dot gnu dot org
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