diff options
Diffstat (limited to 'elf/Makefile')
-rw-r--r-- | elf/Makefile | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/elf/Makefile b/elf/Makefile index 6d314a9ab7..844c9ca56f 100644 --- a/elf/Makefile +++ b/elf/Makefile @@ -150,8 +150,8 @@ install-others = $(inst_slibdir)/$(rtld-installed-name) install-bin-script = ldd endif -others = sprof sln -install-bin = sprof +others = sprof sln pldd +install-bin = sprof pldd others-static = sln install-rootsbin = sln @@ -164,6 +164,8 @@ install-rootsbin += ldconfig ldconfig-modules := cache readlib xmalloc xstrdup chroot_canon extra-objs += $(ldconfig-modules:=.o) +pldd-modules := xmalloc + # To find xmalloc.c and xstrdup.c vpath %.c ../locale/programs @@ -494,6 +496,9 @@ $(objpfx)ldd: ldd.bash.in $(common-objpfx)soversions.mk \ $(objpfx)sprof: $(libdl) $(objpfx)ldconfig: $(ldconfig-modules:%=$(objpfx)%.o) + +$(objpfx)pldd: $(pldd-modules:%=$(objpfx)%.o) + SYSCONF-FLAGS := -D'SYSCONFDIR="$(sysconfdir)"' CFLAGS-ldconfig.c = $(SYSCONF-FLAGS) -D'LIBDIR="$(libdir)"' \ -D'SLIBDIR="$(slibdir)"' -DIS_IN_ldconfig=1 |