From: Steven Barth Date: Tue, 9 Dec 2008 21:02:52 +0000 (+0000) Subject: Compatbility with non-Debian distros X-Git-Tag: 0.9.0~911 X-Git-Url: https://git.archive.openwrt.org/?p=project%2Fluci.git;a=commitdiff_plain;h=a02f12cf2e2becfe976faa6ff1e5a585c78a513d Compatbility with non-Debian distros --- diff --git a/build/gccconfig.mk b/build/gccconfig.mk index bb308af8d..d6af2c3e6 100644 --- a/build/gccconfig.mk +++ b/build/gccconfig.mk @@ -1,8 +1,8 @@ OS ?= $(shell uname) -LUA_SHLIBS = $(shell pkg-config --silence-errors --libs lua5.1) +LUA_SHLIBS = $(shell pkg-config --silence-errors --libs lua5.1 || pkg-config --silence-errors --libs lua) LUA_LIBS = $(if $(LUA_SHLIBS),$(LUA_SHLIBS),$(firstword $(wildcard /usr/lib/liblua.a /usr/local/lib/liblua.a /opt/local/lib/liblua.a))) -LUA_CFLAGS = $(shell pkg-config --silence-errors --cflags lua5.1) +LUA_CFLAGS = $(shell pkg-config --silence-errors --cflags lua5.1 || pkg-config --silence-errors --cflags lua) CC = gcc AR = ar