[scripts] do not check for a specific Cygwin version, rather check the operating...
[openwrt-10.03/.git] / scripts / config / lxdialog / Makefile
index a82b2bac993a77faff6edf1bb120916972af5523..74ee942cd680efef564e8b21430af2355f312857 100644 (file)
@@ -7,7 +7,14 @@ 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
+ifeq ($(shell uname -o),Cygwin)
+LIBS := -lncurses
+endif
 always         := $(hostprogs-y) dochecklxdialog
 
 %.o: %.c