add openbsd compatibility patch (thanks, wbx)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@5749 3c298f89-4303-0410-b956-a3cf2f4a3e73master
parent
7ac94dfc7e
commit
abe006bd5a
|
@ -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
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#!/bin/sh
|
||||
#!/usr/bin/env bash
|
||||
# Check ncurses compatibility
|
||||
|
||||
# What library to link
|
||||
|
|
Loading…
Reference in New Issue