1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-11-24 00:56:14 +02:00

add openbsd compatibility patch (thanks, wbx)

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@5749 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
nbd 2006-12-10 20:58:51 +00:00
parent 4ec142cba0
commit dab6938d57
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) # we really need to do so. (Do not call gcc as part of make mrproper)
CFLAGS := $(shell sh check-lxdialog.sh -ccflags) CFLAGS := $(shell sh check-lxdialog.sh -ccflags)
LIBS := $(shell sh check-lxdialog.sh -ldflags gcc) 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 always := $(hostprogs-y) dochecklxdialog
%.o: %.c %.o: %.c

View File

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