diff options
author | Felix Fietkau <nbd@openwrt.org> | 2006-12-10 20:58:51 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2006-12-10 20:58:51 +0000 |
commit | abe006bd5a8c1555305b5329668acf5056181f06 (patch) | |
tree | 2595593a5840eda311b0470a7f50489ec17d7c52 /scripts/config | |
parent | 7ac94dfc7ebf03f4f2c5294f2b0e9c1f637e65e3 (diff) | |
download | upstream-abe006bd5a8c1555305b5329668acf5056181f06.tar.gz upstream-abe006bd5a8c1555305b5329668acf5056181f06.tar.bz2 upstream-abe006bd5a8c1555305b5329668acf5056181f06.zip |
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')
-rw-r--r-- | scripts/config/lxdialog/Makefile | 9 | ||||
-rw-r--r-- | scripts/config/lxdialog/check-lxdialog.sh | 2 |
2 files changed, 9 insertions, 2 deletions
diff --git a/scripts/config/lxdialog/Makefile b/scripts/config/lxdialog/Makefile index a82b2bac99..aed08e0170 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 diff --git a/scripts/config/lxdialog/check-lxdialog.sh b/scripts/config/lxdialog/check-lxdialog.sh index 50c5ff358b..9a6c915e5a 100644 --- a/scripts/config/lxdialog/check-lxdialog.sh +++ b/scripts/config/lxdialog/check-lxdialog.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env bash # Check ncurses compatibility # What library to link |