Makefile.in: Change "pic" to depend on $(PICFLAG), not

on $(enable_shared).

From-SVN: r33918
This commit is contained in:
David Edelsohn 2000-05-16 02:48:28 +00:00 committed by David Edelsohn
parent 758c7bd466
commit 47668d0a4a
2 changed files with 9 additions and 3 deletions

View File

@ -1,3 +1,8 @@
2000-05-15 David Edelsohn <edelsohn@gnu.org>
Makefile.in: Change "pic" to depend on $(PICFLAG), not
on $(enable_shared).
2000-05-10 Jakub Jelinek <jakub@redhat.com>
* config.table: Use mh-sparcpic for sparc*-*-*.

View File

@ -108,8 +108,9 @@ INCDIR=$(srcdir)/$(MULTISRCTOP)../include
COMPILE.c = $(CC) -c @DEFS@ $(LIBCFLAGS) -I. -I$(INCDIR) $(HDEFINES) @ac_libiberty_warn_cflags@
.c.o:
test x"$(enable_shared)" != xyes || \
$(COMPILE.c) $(PICFLAG) $< -o pic/$@
if [ x"$(PICFLAG)" != x ]; then \
$(COMPILE.c) $(PICFLAG) $< -o pic/$@; \
else true; fi
$(COMPILE.c) $<
info: info-subdir
@ -185,7 +186,7 @@ required-list: Makefile
echo $(REQUIRED_OFILES) > required-list
stamp-picdir:
if [ x"$(enable_shared)" = xyes ] && [ ! -d pic ]; then \
if [ x"$(PICFLAG)" != x ] && [ ! -d pic ]; then \
mkdir pic; \
else true; fi
touch stamp-picdir