OSDN Git Service

2001-10-19 H.J. Lu <hjl@gnu.org>
authorhjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 20 Oct 2001 05:39:06 +0000 (05:39 +0000)
committerhjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 20 Oct 2001 05:39:06 +0000 (05:39 +0000)
* Makefile.in ($(TARGETLIB)): Also generate pic/$(TARGETLIB) if
necessary.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@46369 138bc75d-0d04-0410-961f-82ee72b054a4

libiberty/ChangeLog
libiberty/Makefile.in

index 20c08f9..de76760 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 f549902..877e0a9 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