From: Felix Fietkau Date: Sun, 10 Dec 2006 20:58:51 +0000 (+0000) Subject: add openbsd compatibility patch (thanks, wbx) X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=c5c7a2e5ab5b35b59b2144d8cde262c5ac4374ba;p=openwrt%2Fstaging%2Frobimarko.git add openbsd compatibility patch (thanks, wbx) SVN-Revision: 5749 --- 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