add openbsd compatibility patch (thanks, wbx)

SVN-Revision: 5749
This commit is contained in:
Felix Fietkau 2006-12-10 20:58:51 +00:00
parent 3310901f9b
commit c5c7a2e5ab
2 changed files with 9 additions and 2 deletions

View 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
endif
always := $(hostprogs-y) dochecklxdialog
%.o: %.c

View File

@ -1,4 +1,4 @@
#!/bin/sh
#!/usr/bin/env bash
# Check ncurses compatibility
# What library to link