summaryrefslogtreecommitdiff
path: root/ldso/libdl/libdl.c
diff options
context:
space:
mode:
Diffstat (limited to 'ldso/libdl/libdl.c')
-rw-r--r--ldso/libdl/libdl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ldso/libdl/libdl.c b/ldso/libdl/libdl.c
index ed4e735c6..388e3c703 100644
--- a/ldso/libdl/libdl.c
+++ b/ldso/libdl/libdl.c
@@ -308,7 +308,9 @@ static void *do_dlopen(const char *libname, int flag, ElfW(Addr) from)
struct elf_resolve **init_fini_list;
static bool _dl_init;
struct elf_resolve **local_scope;
+#ifdef SHARED
struct r_scope_elem *ls;
+#endif
#if defined(USE_TLS) && USE_TLS
bool any_tls = false;
#endif