summaryrefslogtreecommitdiffstats
path: root/scripts/config/lxdialog/Makefile
diff options
context:
space:
mode:
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2006-12-10 20:58:51 +0000
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2006-12-10 20:58:51 +0000
commitdab6938d57983c3caa89841800b9a44bdc994b1f (patch)
tree2595593a5840eda311b0470a7f50489ec17d7c52 /scripts/config/lxdialog/Makefile
parent4ec142cba0131c4661cce5825281a7efc0bf4fa5 (diff)
add openbsd compatibility patch (thanks, wbx)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@5749 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'scripts/config/lxdialog/Makefile')
-rw-r--r--scripts/config/lxdialog/Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/scripts/config/lxdialog/Makefile b/scripts/config/lxdialog/Makefile
index a82b2bac9..aed08e017 100644
--- a/scripts/config/lxdialog/Makefile
+++ b/scripts/config/lxdialog/Makefile
@@ -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
+endif
+
+
always := $(hostprogs-y) dochecklxdialog
%.o: %.c