merge from gcc
authorDJ Delorie <dj@redhat.com>
Sun, 21 Oct 2001 00:08:22 +0000 (00:08 +0000)
committerDJ Delorie <dj@redhat.com>
Sun, 21 Oct 2001 00:08:22 +0000 (00:08 +0000)
libiberty/ChangeLog
libiberty/Makefile.in

index 52eb093bcc7cb0ee559f4985915855fc33ca2bac..29777fec7c4307339dcac1f190996adf1d621932 100644 (file)
@@ -1,3 +1,8 @@
+2001-10-19  H.J. Lu <hjl@gnu.org>
+
+       * Makefile.in ($(TARGETLIB)): Also generate pic/$(TARGETLIB) if
+       necessary.
+
 2001-10-17  DJ Delorie  <dj@redhat.com>
 
        * argv.c, asprintf.c, choose-temp.c, concat.c, cplus-dem.c,
index f5499029696d5915a468454bfee5dff8d1edafa6..877e0a9279f08a010e50ffc239111145ba62cdb3 100644 (file)
@@ -154,10 +154,17 @@ CONFIGURED_OFILES = asprintf.o atexit.o basename.o bcmp.o bcopy.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