Skip to content

netbsd-curses

  • netbsd-curses attempts to run cross-compiled nbperf and tic on the build system:
    • unset HOSTCC; does not work if host clang is being used with --target and --sysroot to cross-compile the rest of netbsd-curses
    • or set HOSTCC=gcc if you are using clang and the host is using gcc; easiest as host gcc is not a cross-compiler by default
    • or remove --target and --sysroot from CFLAGS if using host clang
  • If CC does not equal HOSTCC then netbsd-curses assumes we are cross-compiling and sets CROSSCOMPILING=1
  • CROSSCOMPILING=1 does not allow CFLAGS to be in CFLAGS_HOST which are used for building nbperf and tic with HOSTCC
  • Do not provide captoinfo or infotocap as symlinks to tic as netbsd-curses’s tic does not support -I or -C
  • --as-needed ensures that only what is needed is being used from libcurses.so and libterminfo.so
  • Pass -lcurses -lterminfo in this order
  • libedit, pcre2 and util-linux require explicitly passing -lterminfo to LIBS and LDFLAGS
  • util-linux and yash link against libtinfo.so; check if passing -lterminfo removes this need?