about summary refs log tree commit diff
path: root/elf
diff options
context:
space:
mode:
Diffstat (limited to 'elf')
-rw-r--r--elf/Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/elf/Makefile b/elf/Makefile
index 23989200ce..72ce671ee2 100644
--- a/elf/Makefile
+++ b/elf/Makefile
@@ -67,6 +67,7 @@ others-static   = sln
 install-rootsbin = sln
 
 ifeq (yes,$(use-ldconfig))
+ifeq (yes,$(build-shared))
 others-static	+= ldconfig
 others		+= ldconfig
 install-rootsbin += ldconfig
@@ -78,6 +79,7 @@ extra-objs	+= $(ldconfig-modules:=.o)
 vpath %.c ../locale/programs
 
 endif
+endif
 
 ifeq (yes,$(build-shared))
 tests = loadtest restest1 preloadtest loadfail multiload origtest resolvfail \