about summary refs log tree commit diff
path: root/elf/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'elf/Makefile')
-rw-r--r--elf/Makefile13
1 files changed, 7 insertions, 6 deletions
diff --git a/elf/Makefile b/elf/Makefile
index 763908e7c5..b563e93899 100644
--- a/elf/Makefile
+++ b/elf/Makefile
@@ -40,17 +40,18 @@ distribute	= $(rtld-routines:=.c) dynamic-link.h do-rel.h dl-machine.h \
 		  genrtldtbl.awk atomicity.h dl-procinfo.h ldsodefs.h \
 		  dl-librecon.h interp.c sln.c dl-origin.h
 
+include ../Makeconfig
+
 extra-libs	 = libdl
 extra-libs-others = $(extra-libs)
-libdl-routines	:= dlopen dlclose dlsym dlvsym dlerror dladdr dlopenold
+libdl-routines	:= dlopen dlclose dlsym dlvsym dlerror dladdr
+ifeq ($(versioning),yes)
+libdl-routines	+= dlopenold
+libdl-shared-only-routines := dlopenold
+endif
 
 before-compile = $(objpfx)trusted-dirs.h
 
-
-all: # Make this the default target; it will be defined in Rules.
-
-include ../Makeconfig
-
 ifeq ($(versioning),yes)
 ld-map		= $(common-objpfx)libc.map
 endif