2004-07-21 Roland McGrath <roland@redhat.com>

* Makefile ($(objpfx)multidir.mk): Use $(make-target-directory).
This commit is contained in:
Roland McGrath 2004-07-21 23:14:37 +00:00
parent 2ed2dc1846
commit 58c2859f14
2 changed files with 3 additions and 1 deletions

View File

@ -86,6 +86,7 @@ ifeq ($(build-shared),yes)
# We do it once and save the result in a generated makefile.
-include $(objpfx)multidir.mk
$(objpfx)multidir.mk: $(common-objpfx)config.make
$(make-target-directory)
dir=`$(CC) $(CFLAGS) $(CPPFLAGS) -print-multi-directory`; \
echo "multidir := $$dir" > $@T
mv -f $@T $@
@ -308,7 +309,7 @@ $(objpfx)$(multidir)/crtn.o: $(objpfx)crtn.o $(objpfx)$(multidir)
ln -f $< $@
endif
generated += crti.S crtn.S defs.h pt-initfini.s libpthread_nonshared.a
generated += crti.S crtn.S defs.h pt-initfini.s libpthread_nonshared.a
endif
ifeq (yes,$(build-static-nss))

View File

@ -307,6 +307,7 @@ ifeq ($(build-shared),yes)
# We do it once and save the result in a generated makefile.
-include $(objpfx)multidir.mk
$(objpfx)multidir.mk: $(common-objpfx)config.make
$(make-target-directory)
dir=`$(CC) $(CFLAGS) $(CPPFLAGS) -print-multi-directory`; \
echo "multidir := $$dir" > $@T
mv -f $@T $@