0
0
mirror of https://github.com/termux/termux-packages.git synced 2025-10-23 00:04:45 +00:00
Files
termux-packages/packages/libresolv-wrapper/do-not-touch-libdl-static-stub.patch
Robert Kirkman a3cf7e42c1 fix(main/libresolv-wrapper): do not use libdl.a stub
- Fixes https://github.com/termux/termux-packages/issues/26478

- Causes `libresolv-wrapper` to use `dlopen()` instead of `libdl.a`
2025-09-20 14:56:04 -05:00

17 lines
473 B
Diff

Causes libresolv-wrapper to check for, and use, dlopen() instead of
libdl, to work around https://github.com/termux/termux-packages/issues/26478
-- Looking for dlopen
-- Looking for dlopen - found
--- a/ConfigureChecks.cmake
+++ b/ConfigureChecks.cmake
@@ -131,7 +131,6 @@ if (UNIX)
check_function_exists(getaddrinfo HAVE_GETADDRINFO)
endif (UNIX)
-find_library(DLFCN_LIBRARY dl)
if (DLFCN_LIBRARY)
list(APPEND _REQUIRED_LIBRARIES ${DLFCN_LIBRARY})
else()