summaryrefslogtreecommitdiff
path: root/ldso/libdl/Makefile.in
diff options
context:
space:
mode:
Diffstat (limited to 'ldso/libdl/Makefile.in')
-rw-r--r--ldso/libdl/Makefile.in6
1 files changed, 5 insertions, 1 deletions
diff --git a/ldso/libdl/Makefile.in b/ldso/libdl/Makefile.in
index 152185e37..be236c83f 100644
--- a/ldso/libdl/Makefile.in
+++ b/ldso/libdl/Makefile.in
@@ -20,7 +20,11 @@ endif
CFLAGS-libdl.c := -DLDSO_ELFINTERP=\"$(TARGET_ARCH)/elfinterp.c\"
LDFLAGS-$(UCLIBC_FORMAT_DSBT_ELF)-libdl.so := -Wl,--dsbt-index=3
-LDFLAGS-libdl.so := $(LDFLAGS) -Wl,-fini,dl_cleanup
+LDFLAGS-libdl.so := $(LDFLAGS)
+
+ifeq ($(LDSO_NO_CLEANUP),)
+LDFLAGS-libdl.so += -Wl,-fini,dl_cleanup
+endif
LIBS-libdl.so := $(LIBS) $(ldso)