X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/5c472fc895c32a189d574b338057164e95430825..b2e1bfb056bca17d81fdcbf020d9948a88d17304:/scripts/config/lxdialog/Makefile?ds=inline diff --git a/scripts/config/lxdialog/Makefile b/scripts/config/lxdialog/Makefile index a82b2bac9..bdafde0c0 100644 --- a/scripts/config/lxdialog/Makefile +++ b/scripts/config/lxdialog/Makefile @@ -7,7 +7,15 @@ all: lxdialog # we really need to do so. (Do not call gcc as part of make mrproper) CFLAGS := $(shell sh check-lxdialog.sh -ccflags) LIBS := $(shell sh check-lxdialog.sh -ldflags gcc) - + +# workaround for OpenBSD, which does not use symlinks to libncurses.so +OS := $(shell uname -s) +ifeq ($(strip $(OS)),OpenBSD) +LIBS := -lncurses +endif +ifeq ($(shell uname -o),Cygwin) +LIBS := -lncurses +endif always := $(hostprogs-y) dochecklxdialog %.o: %.c