diff options
author | Roland McGrath <roland@gnu.org> | 2006-02-28 09:57:07 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 2006-02-28 09:57:07 +0000 |
commit | a5f2bd861c4c84ac66164951a7f32e1d6f57849c (patch) | |
tree | 513c87adf7cf9e919713fc3e0f55959a6b2f6d3b /elf | |
parent | 8d2e6a0383b6958311f021ee0b8b7eba44110f5a (diff) | |
download | glibc-a5f2bd861c4c84ac66164951a7f32e1d6f57849c.zip glibc-a5f2bd861c4c84ac66164951a7f32e1d6f57849c.tar.gz glibc-a5f2bd861c4c84ac66164951a7f32e1d6f57849c.tar.bz2 |
* elf/rtld-Rules (subdir-args): New variable.
(rtld-subdir-make): Use it.
Diffstat (limited to 'elf')
-rw-r--r-- | elf/rtld-Rules | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/elf/rtld-Rules b/elf/rtld-Rules index 61143b1..01fbbdf 100644 --- a/elf/rtld-Rules +++ b/elf/rtld-Rules @@ -1,6 +1,6 @@ # Subroutine makefile for compiling libc modules linked into dynamic linker. -# Copyright (C) 2002, 2003, 2005 Free Software Foundation, Inc. +# Copyright (C) 2002, 2003, 2005, 2006 Free Software Foundation, Inc. # This file is part of the GNU C Library. # The GNU C Library is free software; you can redistribute it and/or @@ -72,10 +72,16 @@ include $(patsubst %,../o-iterator.mk,$(object-suffixes-left)) # This is how we descend into each subdirectory. See below. define rtld-subdir-make -$(MAKE) -C ../$* objdir=$(objdir) -f Makefile -f ../elf/rtld-Rules rtld-all \ +$(MAKE) $(subdir-args) objdir=$(objdir) \ + -f Makefile -f ../elf/rtld-Rules rtld-all \ rtld-modules='$(addprefix rtld-,$(rtld-$*))' endef +# See subdir-target-args in ../Makefile for the model. +subdir-args = subdir=$*$(if $($*-srcdir),\ + -C $($*-srcdir) ..=`pwd`/,\ + -C $(..)$* ..=../) + FORCE: else |