diff options
author | Alexey Dokuchaev <danfe@FreeBSD.org> | 2024-01-15 10:38:18 +0000 |
---|---|---|
committer | Alexey Dokuchaev <danfe@FreeBSD.org> | 2024-01-15 10:38:18 +0000 |
commit | a5ade24bb0d77d5ca30a27dc33748ff644a09588 (patch) | |
tree | 4f45c918ac06c7c32d72a29e39243c572982e580 /misc/Makefile | |
parent | math/elan: New port: Lean version manager (diff) |
misc/mc: drop needless run-time dependencies on Aspell and Xlib
Yury V. Zaytsev points out that for X11 and Aspell support, header
files <X11/Xlib.h> and <aspell.h> are only needed during the build,
while their corresponding libraries would be loaded dynamically if
available; if not, mc(1) would still work fine, just without those
features. The source code and ldd(1) output confirm his findings:
% cd $WRKDIR/mc-4.8.30 && grep -R -A1 g_module_build_path *
lib/tty/x11conn.c: x11_module_fname = g_module_build_path (NULL, "X11");
lib/tty/x11conn.c- x11_module = g_module_open (x11_module_fname, G_MODULE_BIND_LAZY);
--
src/editor/spell.c: spell_module_fname = g_module_build_path (NULL, "libaspell");
src/editor/spell.c- spell_module = g_module_open (spell_module_fname, G_MODULE_BIND_LAZY);
This allows to enable Aspell support by default and drop X11-less
slave port now that both of these dependencies are build-time only
yet still can be completely disabled via options.
PR: 269120
Diffstat (limited to '')
-rw-r--r-- | misc/Makefile | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/misc/Makefile b/misc/Makefile index 219cd07ac295..7c358530f4bb 100644 --- a/misc/Makefile +++ b/misc/Makefile @@ -259,7 +259,6 @@ SUBDIR += mate-user-guide SUBDIR += mbuffer SUBDIR += mc - SUBDIR += mc-nox11 SUBDIR += mdp SUBDIR += meshoptimizer SUBDIR += metalink-checker |