summaryrefslogtreecommitdiff
path: root/ldso/libdl/Makefile
diff options
context:
space:
mode:
authorJoakim Tjernlund <joakim.tjernlund@transmode.se>2004-08-13 13:56:25 +0000
committerJoakim Tjernlund <joakim.tjernlund@transmode.se>2004-08-13 13:56:25 +0000
commit9f47eaf3223c17a99cc88aea3287697e2635681f (patch)
treebb46e11388b630617ed8a7f42d4338ad32697c38 /ldso/libdl/Makefile
parent5e383688dc73a3b18d41eabe7714539e39bea752 (diff)
Fix usage_count in ldso/libdl.
Don't' use atexit in libdl. Make destrutor in libdl actually run and to dlclose all dlopened libs. Remove dlclosed libs from the _dl_symbol_tables list.
Diffstat (limited to 'ldso/libdl/Makefile')
-rw-r--r--ldso/libdl/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/ldso/libdl/Makefile b/ldso/libdl/Makefile
index 9e2fb09e7..f10510f51 100644
--- a/ldso/libdl/Makefile
+++ b/ldso/libdl/Makefile
@@ -73,7 +73,7 @@ $(OBJ): Makefile
shared:
$(LD) $(LDFLAGS) -soname=$(LIBDL_SHARED).$(MAJOR_VERSION) \
- -o $(LIBDL_SHARED_FULLNAME) --whole-archive $(LIBDL_PIC) \
+ -o $(LIBDL_SHARED_FULLNAME) -fini dl_cleanup --whole-archive $(LIBDL_PIC) \
--no-whole-archive $(TOPDIR)/libc/misc/internals/interp.o \
-L$(TOPDIR)/lib -lc $(LDADD_LIBFLOAT) $(LIBGCC);
$(INSTALL) -d $(TOPDIR)lib