Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: How to best build a smalle libcurses for tiny crunched installers?



Also, we have USE_WIDECHAR make(1) macro. If widechar support is
dropped, nvi does not require its built-in regex. This may help
your work :-).

external/nvi/usr.bin/nvi/Makefile:
     5  USE_WIDECHAR?=yes
...
    58  # For wide char support
    59  .if ${USE_WIDECHAR} == "yes"
    60  SRCS+=  regcomp.c regerror.c regexec.c regfree.c
    61  CPPFLAGS+=-I${DIST}/regex -D__REGEX_PRIVATE -DUSE_WIDECHAR
    62  .endif

Thanks,
rin

On 2019/07/27 23:12, Martin Husemann wrote:
On Sat, Jul 27, 2019 at 04:03:17PM +0200, Martin Husemann wrote:
Sun3 still fails as we need a non-WCHAR version of nvi for that.
Any takers? Interestingly only a single missing symbol:

src/external/bsd/nvi/dist/cl/cl_funcs.c:65: undefined reference to `waddnwstr'

... and that already was #ifdef USE_WIDECHAR - yay!

Martin



Home | Main Index | Thread Index | Old Index