https://gitlab.synchro.net/main/sbbs/-/commit/e1055a9083ed25bd578373c7
Modified Files:
src/sbbs3/GNUmakefile
Log Message:
Stop relinking libsbbs.so on every make
The libsbbs.so link rule listed $(JS_DEPS) and $(CRYPT_DEPS) as
prerequisites. With the bundled SpiderMonkey and cryptlib (the default)
those are the targets 'js' and 'cl', recipe-only rules that never create
a file by that name, so make always treated them as out of date and
relinked libsbbs.so, and then sbbs, jsexec, the servers and every
utility linked against it, even when nothing had changed.
Depend on the library files ($(JS_LIB), $(CRYPT_LIB)) instead. Their
rules in build/Common.gmake still run the js/cl sub-makes first, so a
rebuilt library still relinks, but a no-change make now links nothing.
When system libraries are used, JS_DEPS/CRYPT_DEPS are empty and no prerequisite is added, as before.
The other bundled libraries (sftp-mt, uifc-mt, ...) were already
reached through their library files and did not cause relinks.
Besides the time this wasted on slow hosts, each relink dropped the cap_net_bind_service file capability, so 'make setcap symlinks' lost
the capability that setcap had just set.
Fixes #1448
Co-Authored-By: Claude Opus 5.5 <
noreply@anthropic.com>
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net