softethervpn5: fix compilation without OS ncurses
authorRosen Penev <[email protected]>
Mon, 28 Jul 2025 04:32:02 +0000 (21:32 -0700)
committerTianling Shen <[email protected]>
Tue, 29 Jul 2025 08:59:56 +0000 (16:59 +0800)
For some reason, the ncurses.pc file for the host build gets installed
in host instead of hostpkg. Just override the whole thing. The tool
built doesn't even use ncurses.

Signed-off-by: Rosen Penev <[email protected]>
net/softethervpn5/Makefile

index c88bab594735ca298c82998ea78279bb33595271..d299b1a89439b62628acffb12783f07adcc7fedc 100644 (file)
@@ -83,6 +83,9 @@ export USE_MUSL=YES
 # BUG: outdated host/include/elf.h
 HOST_CFLAGS += $(FPIC) -DAT_HWCAP2=26
 TARGET_CFLAGS += $(FPIC)
+CMAKE_HOST_OPTIONS += \
+       -DCURSES_CURSES_LIBRARY=$(STAGING_DIR_HOSTPKG)/lib/libncursesw.a \
+       -DCURSES_INCLUDE_PATH=$(STAGING_DIR_HOSTPKG)/include
 CMAKE_OPTIONS += -DICONV_LIB_PATH="$(ICONV_PREFIX)/lib"
 
 # static build for host (hamcorebuilder), avoid -fpic on ncurses/host and shared libs can't be found on host