Просмотр исходного кода

add openbsd compatibility patch (thanks, wbx)

SVN-Revision: 5749
Felix Fietkau 19 лет назад
Родитель
Сommit
c5c7a2e5ab
2 измененных файлов с 9 добавлено и 2 удалено
  1. 8 1
      scripts/config/lxdialog/Makefile
  2. 1 1
      scripts/config/lxdialog/check-lxdialog.sh

+ 8 - 1
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

+ 1 - 1
scripts/config/lxdialog/check-lxdialog.sh

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