diff options
author | Jari Vetoniemi <mailroxas@gmail.com> | 2018-11-18 08:06:46 +0200 |
---|---|---|
committer | Jari Vetoniemi <mailroxas@gmail.com> | 2018-11-18 08:06:46 +0200 |
commit | 655b57ee7f5c54d09ab6fa7ca9776156ff8a9166 (patch) | |
tree | 7d476385bb249a3096c43735f6d9943b1cfefe74 /src/linker | |
parent | f1efa44485199a4b545d28c121d7d2dc3ecfed4a (diff) |
linker: fix cpp_demangler setting
Diffstat (limited to 'src/linker')
-rw-r--r-- | src/linker/linker.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/linker/linker.c b/src/linker/linker.c index bd774a4..e4e9f8a 100644 --- a/src/linker/linker.c +++ b/src/linker/linker.c @@ -1274,7 +1274,7 @@ soinfo *apkenv_find_library(const char *name, const bool try_glibc) if (!(si = apkenv_load_library(name, try_glibc)) || !(si = apkenv_init_library(si))) return NULL; - if (!strstr(bname, "libstdc++.so")) { + if (!strcmp(bname, "libstdc++.so")) { Elf32_Sym *sym = apkenv_lookup_in_library(si, "__cxa_demangle"); if (sym && ELF32_ST_BIND(sym->st_info) == STB_GLOBAL && sym->st_shndx != 0) wrapper_set_cpp_demangler((void*)(intptr_t)(sym->st_value + si->base)); |