diff options
| author | Mikael Magnusson <mikachu@gmail.com> | 2026-05-27 05:39:30 +0200 |
|---|---|---|
| committer | Mikael Magnusson <mikachu@gmail.com> | 2026-06-07 12:45:29 +0200 |
| commit | 1426a4dfdc2eccbcbf0c2583efd802e4169b487b (patch) | |
| tree | e69ac7a82eb40f2f6b5f382aad041ef293340682 /Scripts | |
| parent | unposted: zsh/nearcolor: update docs, add tests (diff) | |
| download | zsh-1426a4dfdc2eccbcbf0c2583efd802e4169b487b.tar zsh-1426a4dfdc2eccbcbf0c2583efd802e4169b487b.tar.gz zsh-1426a4dfdc2eccbcbf0c2583efd802e4169b487b.tar.bz2 zsh-1426a4dfdc2eccbcbf0c2583efd802e4169b487b.tar.lz zsh-1426a4dfdc2eccbcbf0c2583efd802e4169b487b.tar.xz zsh-1426a4dfdc2eccbcbf0c2583efd802e4169b487b.tar.zst zsh-1426a4dfdc2eccbcbf0c2583efd802e4169b487b.zip | |
54669: add --disable-link-all-libs configure option
When this is used, libraries only needed by specific modules will only
be linked to those modules (currently libgdbm and libpcre2). When
--enable-cap is used, the main shell also uses libcap functions so we
want to link that either way.
Speaking of the cap module, it did some weird thing where it always
compiles but creates useless builtins that only error, which means you
can't rely on zmodload to check if they'll work. I'm sure someone will
complain about me changing this but I'm going to at least try it and see
if someone has a good reason for it.
The gdbm module also has a big ifdef for the whole module, but instead
of dummy builtins it just does #error, so remove that. We won't try to
compile it if the user didn't ask for it, and if the user asked for it
and it wouldn't compile, configure won't create a Makefile. Using the
ac_cv_ cache variables in db_gdbm.mdd also doesn't actually work
properly, those will remain set and enable the module to be linked after
you pass --disable-gdbm and you will get the aforementioned #error. Use
the enable_gdbm variable instead, like pcre.mdd does (and also cap.mdd
now that I evilly made it conditional on --enable-cap).
Diffstat (limited to 'Scripts')
0 files changed, 0 insertions, 0 deletions
